|
NAMEGtk2::Action - wrapper for GtkActionHIERARCHYGlib::Object +----Gtk2::Action INTERFACESGtk2::Buildable CONSTRUCTORaction = Gtk2::Action->new (key=>value,...)Create and return a new action object. Note that this is the "new" of Glib::Object, not "gtk_action_new". Eg.Gtk2::Action->new (name => 'open-foo', stock_id => 'gtk-open', tooltip => 'Start a foo'); The keyword/value style is more flexible and a little clearer than the four direct arguments of "gtk_action_new" (and also works better for subclasses). METHODS$action->set_accel_group ($accel_group)
string = $action->get_accel_pathSince: gtk+ 2.6$action->set_accel_path ($accel_path)
$action->activateboolean = $action->get_always_show_imageSince: gtk+ 2.20$action->set_always_show_image ($always_show)
Since: gtk+ 2.20 $action->block_activateSince: gtk+ 2.16$action->block_activate_from ($proxy)
$action->connect_accelerator$action->connect_proxy ($proxy)
widget = $action->create_icon ($icon_size)
widget = $action->create_menuSince: gtk+ 2.12widget = $action->create_menu_itemwidget = $action->create_tool_item$action->disconnect_accelerator$action->disconnect_proxy ($proxy)
string or undef = $action->get_icon_nameSince: gtk+ 2.16$action->set_icon_name ($icon_name)
Since: gtk+ 2.16 boolean = $action->get_is_importantSince: gtk+ 2.16$action->set_is_important ($is_important)
Since: gtk+ 2.16 boolean = $action->is_sensitiveboolean = $action->is_visiblestring or undef = $action->get_labelSince: gtk+ 2.16$action->set_label ($label)
Since: gtk+ 2.16 string = $action->get_namelist = $action->get_proxiesboolean = $action->get_sensitive$action->set_sensitive ($sensitive)
Since: gtk+ 2.6 string or undef = $action->get_short_labelSince: gtk+ 2.16$action->set_short_label ($short_label)
Since: gtk+ 2.16 string or undef = $action->get_stock_idSince: gtk+ 2.16$action->set_stock_id ($stock_id)
Since: gtk+ 2.16 string or undef = $action->get_tooltipSince: gtk+ 2.16$action->set_tooltip ($tooltip)
Since: gtk+ 2.16 $action->unblock_activateSince: gtk+ 2.16$action->unblock_activate_from ($proxy)
boolean = $action->get_visibleboolean = $action->get_visible_horizontalSince: gtk+ 2.16$action->set_visible_horizontal ($visible_horizontal)
Since: gtk+ 2.16 $action->set_visible ($visible)
Since: gtk+ 2.6 boolean = $action->get_visible_verticalSince: gtk+ 2.16$action->set_visible_vertical ($visible_vertical)
Since: gtk+ 2.16 PROPERTIES
SIGNALS
ENUMS AND FLAGSenum Gtk2::IconSize
SEE ALSOGtk2, Glib::ObjectCOPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |