Torsten Schönfeld > Gtk2-1.180 > xs/GtkToggleAction.xs

Download:
Gtk2-1.180.tar.gz

Annotate this POD

CPAN RT

New  4
Open  4
View Bugs
Report a bug
Source   Latest Release: Gtk2-1.203

SYNOPSIS ^

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

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 and stock-id, you just use key => value pairs like with Glib::Object::new.