Gtk2::Action(3)

NAME
Gtk2::Action

HIERARCHY
  Glib::Object
  +----Gtk2::Action

METHODS

  $action->set_accel_group ($accel_group)

    * $accel_group (Gtk2::AccelGroup or undef)

  string = $action->get_accel_path

  $action->set_accel_path ($accel_path)
    * $accel_path (string)

  $action->activate

  $action->block_activate_from ($proxy)

    * $proxy (Gtk2::Widget)

  $action->connect_accelerator

  $action->connect_proxy ($proxy)
    * $proxy (Gtk2::Widget)

  widget = $action->create_icon ($icon_size)

    * $icon_size (Gtk2::IconSize)

  widget = $action->create_menu_item

  widget = $action->create_tool_item

  $action->disconnect_accelerator

  $action->disconnect_proxy ($proxy)
    * $proxy (Gtk2::Widget)

  boolean = $action->is_sensitive

  boolean = $action->is_visible

  string = $action->get_name

  list = $action->get_proxies

  boolean = $action->get_sensitive

  $action->set_sensitive ($sensitive)

    * $sensitive (boolean)

  $action->unblock_activate_from ($proxy)
    * $proxy (Gtk2::Widget)

  boolean = $action->get_visible

  $action->set_visible ($visible)

    * $visible (boolean)

PROPERTIES
'action-group' (Gtk2::ActionGroup : readable / writable / private)
    The GtkActionGroup this GtkAction is associated with, or NULL (for internal use).

'hide-if-empty' (boolean : readable / writable / private)
    When TRUE, empty menu proxies for this action are hidden.

'is-important' (boolean : readable / writable / private)
    Whether the action is considered important. When TRUE, toolitem proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode.

'label' (string : readable / writable / private)
    The label used for menu items and buttons that activate this action.

'name' (string : readable / writable / construct-only / private)
    A unique name for the action.

'sensitive' (boolean : readable / writable / private)
    Whether the action is enabled.

'short-label' (string : readable / writable / private)
    A shorter label that may be used on toolbar buttons.

'stock-id' (string : readable / writable / private)
    The stock icon displayed in widgets representing this action.

'tooltip' (string : readable / writable / private)
    A tooltip for this action.

'visible' (boolean : readable / writable / private)
    Whether the action is visible.

'visible-horizontal' (boolean : readable / writable / private)
    Whether the toolbar item is visible when the toolbar is in a horizontal orientation.

'visible-overflown' (boolean : readable / writable / private)
    When TRUE, toolitem proxies for this action are represented in the toolbar overflow menu.

'visible-vertical' (boolean : readable / writable / private)
    Whether the toolbar item is visible when the toolbar is in a vertical orientation.

SIGNALS

activate (Gtk2::Action)

ENUMS AND FLAGS

  enum Gtk2::IconSize
* 'invalid' / 'GTK_ICON_SIZE_INVALID'
* 'menu' / 'GTK_ICON_SIZE_MENU'
* 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
* 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
* 'button' / 'GTK_ICON_SIZE_BUTTON'
* 'dnd' / 'GTK_ICON_SIZE_DND'
* 'dialog' / 'GTK_ICON_SIZE_DIALOG'

SEE ALSO
Gtk2, Glib::Object

COPYRIGHT
Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.