
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.