1Gtk2::Action(3) User Contributed Perl Documentation Gtk2::Action(3)
2
3
4
6 Gtk2::Action
7
9 Glib::Object
10 +----Gtk2::Action
11
13 Gtk2::Buildable
14
16 $action->set_accel_group ($accel_group)
17 · $accel_group (Gtk2::AccelGroup or undef)
18
19 string = $action->get_accel_path
20 Since: gtk+ 2.6
21
22 $action->set_accel_path ($accel_path)
23 · $accel_path (string)
24
25 $action->activate
26 $action->block_activate_from ($proxy)
27 · $proxy (Gtk2::Widget)
28
29 $action->connect_accelerator
30 $action->connect_proxy ($proxy)
31 · $proxy (Gtk2::Widget)
32
33 widget = $action->create_icon ($icon_size)
34 · $icon_size (Gtk2::IconSize)
35
36 widget = $action->create_menu
37 Since: gtk+ 2.12
38
39 widget = $action->create_menu_item
40 widget = $action->create_tool_item
41 $action->disconnect_accelerator
42 $action->disconnect_proxy ($proxy)
43 · $proxy (Gtk2::Widget)
44
45 boolean = $action->is_sensitive
46 boolean = $action->is_visible
47 string = $action->get_name
48 list = $action->get_proxies
49 boolean = $action->get_sensitive
50 $action->set_sensitive ($sensitive)
51 · $sensitive (boolean)
52
53 Since: gtk+ 2.6
54
55 $action->unblock_activate_from ($proxy)
56 · $proxy (Gtk2::Widget)
57
58 boolean = $action->get_visible
59 $action->set_visible ($visible)
60 · $visible (boolean)
61
62 Since: gtk+ 2.6
63
65 'action-group' (Gtk2::ActionGroup : readable / writable / private)
66 The GtkActionGroup this GtkAction is associated with, or NULL (for
67 internal use).
68
69 'always-show-image' (boolean : readable / writable / construct /
70 private)
71 Whether the image will always be shown
72
73 'gicon' (Glib::Object::_Unregistered::GIcon : readable / writable /
74 private)
75 The GIcon being displayed
76
77 'hide-if-empty' (boolean : readable / writable / private)
78 When TRUE, empty menu proxies for this action are hidden.
79
80 'icon-name' (string : readable / writable / private)
81 The name of the icon from the icon theme
82
83 'is-important' (boolean : readable / writable / private)
84 Whether the action is considered important. When TRUE, toolitem
85 proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode.
86
87 'label' (string : readable / writable / private)
88 The label used for menu items and buttons that activate this
89 action.
90
91 'name' (string : readable / writable / construct-only / private)
92 A unique name for the action.
93
94 'sensitive' (boolean : readable / writable / private)
95 Whether the action is enabled.
96
97 'short-label' (string : readable / writable / private)
98 A shorter label that may be used on toolbar buttons.
99
100 'stock-id' (string : readable / writable / private)
101 The stock icon displayed in widgets representing this action.
102
103 'tooltip' (string : readable / writable / private)
104 A tooltip for this action.
105
106 'visible' (boolean : readable / writable / private)
107 Whether the action is visible.
108
109 'visible-horizontal' (boolean : readable / writable / private)
110 Whether the toolbar item is visible when the toolbar is in a
111 horizontal orientation.
112
113 'visible-overflown' (boolean : readable / writable / private)
114 When TRUE, toolitem proxies for this action are represented in the
115 toolbar overflow menu.
116
117 'visible-vertical' (boolean : readable / writable / private)
118 Whether the toolbar item is visible when the toolbar is in a
119 vertical orientation.
120
122 activate (Gtk2::Action)
123
125 enum Gtk2::IconSize
126 · 'invalid' / 'GTK_ICON_SIZE_INVALID'
127
128 · 'menu' / 'GTK_ICON_SIZE_MENU'
129
130 · 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
131
132 · 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
133
134 · 'button' / 'GTK_ICON_SIZE_BUTTON'
135
136 · 'dnd' / 'GTK_ICON_SIZE_DND'
137
138 · 'dialog' / 'GTK_ICON_SIZE_DIALOG'
139
141 Gtk2, Glib::Object
142
144 Copyright (C) 2003-2008 by the gtk2-perl team.
145
146 This software is licensed under the LGPL. See Gtk2 for a full notice.
147
148
149
150perl v5.12.0 2010-05-02 Gtk2::Action(3)