Gtk2::RadioAction(3pm)

Gtk2::RadioAction3pm

Wrapper for gtkradioaction

Usage

  my $action = Gtk2::RadioAction->new (name => 'one',
                                       tooltip => 'One',
                                       value => 23);

Note that the constructor slightly deviates from the convenience constructor in the C API. Instead of passing in a list of values for name, label, tooltip, stock-id and value, you just use key => value pairs like with Glib::Object::new.

Hierarchy

  Glib::Object
  +----Gtk2::Action
       +----Gtk2::ToggleAction
            +----Gtk2::RadioAction

Interfaces

  Gtk2::Buildable

Methods

integer = $action->get_current_value

$action->set_current_value ($value)

•

$value (integer)

Since: gtk+ 2.10

arrayref = $action->get_group

$action->set_group ($member_or_listref)

•

$member_or_listref (scalar)

Properties

'current-value' (integer : default 0 : readable / writable / private)

The value property of the currently active member of the group to which this action belongs.

'group' (Gtk2::RadioAction : default undef : writable / private)

The radio action whose group this action belongs to.

'value' (integer : default 0 : readable / writable / private)

The value returned by gtk_radio_action_get_current_value() when this action is the current action of its group.

Signals

changed (Gtk2::RadioAction, Gtk2::RadioAction)

Releases

7 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9
  7. 10

From libgtk2-perl-doc 2:1.24992-1 in Debian 10 (Buster). Parsed by carta from the page's man source.