1Gtk2::Action(3)       User Contributed Perl Documentation      Gtk2::Action(3)
2
3
4

NAME

6       Gtk2::Action
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Action
11

METHODS

13       $action->set_accel_group ($accel_group)
14
15           * $accel_group (Gtk2::AccelGroup or undef)
16
17       string = $action->get_accel_path
18
19       $action->set_accel_path ($accel_path)
20
21           * $accel_path (string)
22
23       $action->activate
24
25       $action->block_activate_from ($proxy)
26
27           * $proxy (Gtk2::Widget)
28
29       $action->connect_accelerator
30
31       $action->connect_proxy ($proxy)
32
33           * $proxy (Gtk2::Widget)
34
35       widget = $action->create_icon ($icon_size)
36
37           * $icon_size (Gtk2::IconSize)
38
39       widget = $action->create_menu_item
40
41       widget = $action->create_tool_item
42
43       $action->disconnect_accelerator
44
45       $action->disconnect_proxy ($proxy)
46
47           * $proxy (Gtk2::Widget)
48
49       boolean = $action->is_sensitive
50
51       boolean = $action->is_visible
52
53       string = $action->get_name
54
55       list = $action->get_proxies
56
57       boolean = $action->get_sensitive
58
59       $action->set_sensitive ($sensitive)
60
61           * $sensitive (boolean)
62
63       $action->unblock_activate_from ($proxy)
64
65           * $proxy (Gtk2::Widget)
66
67       boolean = $action->get_visible
68
69       $action->set_visible ($visible)
70
71           * $visible (boolean)
72

PROPERTIES

74       'action-group' (Gtk2::ActionGroup : readable / writable / private)
75           The GtkActionGroup this GtkAction is associated with, or NULL (for
76           internal use).
77
78       'hide-if-empty' (boolean : readable / writable / private)
79           When TRUE, empty menu proxies for this action are hidden.
80
81       'icon-name' (string : readable / writable / private)
82           The name of the icon from the icon theme
83
84       'is-important' (boolean : readable / writable / private)
85           Whether the action is considered important. When TRUE, toolitem
86           proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode.
87
88       'label' (string : readable / writable / private)
89           The label used for menu items and buttons that activate this
90           action.
91
92       'name' (string : readable / writable / construct-only / private)
93           A unique name for the action.
94
95       'sensitive' (boolean : readable / writable / private)
96           Whether the action is enabled.
97
98       'short-label' (string : readable / writable / private)
99           A shorter label that may be used on toolbar buttons.
100
101       'stock-id' (string : readable / writable / private)
102           The stock icon displayed in widgets representing this action.
103
104       'tooltip' (string : readable / writable / private)
105           A tooltip for this action.
106
107       'visible' (boolean : readable / writable / private)
108           Whether the action is visible.
109
110       'visible-horizontal' (boolean : readable / writable / private)
111           Whether the toolbar item is visible when the toolbar is in a hori‐
112           zontal orientation.
113
114       'visible-overflown' (boolean : readable / writable / private)
115           When TRUE, toolitem proxies for this action are represented in the
116           toolbar overflow menu.
117
118       'visible-vertical' (boolean : readable / writable / private)
119           Whether the toolbar item is visible when the toolbar is in a verti‐
120           cal orientation.
121

SIGNALS

123       activate (Gtk2::Action)
124

ENUMS AND FLAGS

126       enum Gtk2::IconSize
127
128       * 'invalid' / 'GTK_ICON_SIZE_INVALID'
129       * 'menu' / 'GTK_ICON_SIZE_MENU'
130       * 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
131       * 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
132       * 'button' / 'GTK_ICON_SIZE_BUTTON'
133       * 'dnd' / 'GTK_ICON_SIZE_DND'
134       * 'dialog' / 'GTK_ICON_SIZE_DIALOG'
135

SEE ALSO

137       Gtk2, Glib::Object
138
140       Copyright (C) 2003-2007 by the gtk2-perl team.
141
142       This software is licensed under the LGPL.  See Gtk2 for a full notice.
143
144
145
146perl v5.8.8                       2007-03-18                   Gtk2::Action(3)
Impressum