1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 An action which can be triggered by a menu or toolbar item
7 <!-- ##### SECTION Long_Description ##### -->
9 Actions represent operations that the user can be perform, along with
10 some information how it should be presented in the interface. Each action
11 provides methods to create icons, menu items and toolbar items representing
15 As well as the callback that is called when the action gets activated, the
16 following also gets associated with the action:
18 <listitem><para>a name (not translated, for path lookup)</para></listitem>
19 <listitem><para>a label (translated, for display)</para></listitem>
20 <listitem><para>an accelerator</para></listitem>
21 <listitem><para>whether label indicates a stock id</para></listitem>
22 <listitem><para>a tooltip (optional, translated)</para></listitem>
23 <listitem><para>a toolbar label (optional, shorter than label)</para></listitem>
25 The action will also have some state information:
27 <listitem><para>visible (shown/hidden)</para></listitem>
28 <listitem><para>sensitive (enabled/disabled)</para></listitem>
32 Apart from regular actions, there are <link linkend="GtkToggleAction">toggle
33 actions</link>, which can be toggled between two states and <link
34 linkend="GtkRadioAction">radio actions</link>, of which only one in a group
35 can be in the "active" state. Other actions can be implemented as #GtkAction
39 Each action can have one or more proxy menu item, toolbar button or
40 other proxy widgets. Proxies mirror the state of the action (text
41 label, tooltip, icon, visible, sensitive, etc), and should change when
42 the action's state changes. When the proxy is activated, it should
46 <!-- ##### SECTION See_Also ##### -->
48 #GtkActionGroup, #GtkUIManager
51 <!-- ##### SECTION Stability_Level ##### -->
54 <!-- ##### STRUCT GtkAction ##### -->
56 The <structname>GtkAction</structname> struct contains only private members
57 and should not be accessed directly.
61 <!-- ##### SIGNAL GtkAction::activate ##### -->
66 @action: the object which received the signal.
68 <!-- ##### ARG GtkAction:action-group ##### -->
73 <!-- ##### ARG GtkAction:hide-if-empty ##### -->
78 <!-- ##### ARG GtkAction:icon-name ##### -->
83 <!-- ##### ARG GtkAction:is-important ##### -->
88 <!-- ##### ARG GtkAction:label ##### -->
93 <!-- ##### ARG GtkAction:name ##### -->
98 <!-- ##### ARG GtkAction:sensitive ##### -->
103 <!-- ##### ARG GtkAction:short-label ##### -->
108 <!-- ##### ARG GtkAction:stock-id ##### -->
113 <!-- ##### ARG GtkAction:tooltip ##### -->
118 <!-- ##### ARG GtkAction:visible ##### -->
123 <!-- ##### ARG GtkAction:visible-horizontal ##### -->
128 <!-- ##### ARG GtkAction:visible-overflown ##### -->
133 <!-- ##### ARG GtkAction:visible-vertical ##### -->
138 <!-- ##### FUNCTION gtk_action_new ##### -->
150 <!-- ##### FUNCTION gtk_action_get_name ##### -->
159 <!-- ##### FUNCTION gtk_action_is_sensitive ##### -->
168 <!-- ##### FUNCTION gtk_action_get_sensitive ##### -->
177 <!-- ##### FUNCTION gtk_action_set_sensitive ##### -->
186 <!-- ##### FUNCTION gtk_action_is_visible ##### -->
195 <!-- ##### FUNCTION gtk_action_get_visible ##### -->
204 <!-- ##### FUNCTION gtk_action_set_visible ##### -->
213 <!-- ##### FUNCTION gtk_action_activate ##### -->
221 <!-- ##### FUNCTION gtk_action_create_icon ##### -->
231 <!-- ##### FUNCTION gtk_action_create_menu_item ##### -->
240 <!-- ##### FUNCTION gtk_action_create_tool_item ##### -->
249 <!-- ##### FUNCTION gtk_action_create_menu ##### -->
258 <!-- ##### FUNCTION gtk_action_connect_proxy ##### -->
267 <!-- ##### FUNCTION gtk_action_disconnect_proxy ##### -->
276 <!-- ##### FUNCTION gtk_action_get_proxies ##### -->
285 <!-- ##### FUNCTION gtk_action_connect_accelerator ##### -->
293 <!-- ##### FUNCTION gtk_action_disconnect_accelerator ##### -->
301 <!-- ##### FUNCTION gtk_action_block_activate_from ##### -->
310 <!-- ##### FUNCTION gtk_action_unblock_activate_from ##### -->
319 <!-- ##### FUNCTION gtk_action_get_accel_path ##### -->
328 <!-- ##### FUNCTION gtk_action_set_accel_path ##### -->
337 <!-- ##### FUNCTION gtk_action_get_accel_closure ##### -->
346 <!-- ##### FUNCTION gtk_action_set_accel_group ##### -->