GtkActionGroup
A group of actions
Actions are organised into groups. An action group is essentially a
map from names to #GtkAction objects.
All actions that would make sense to use in a particular context
should be in a single group. Multiple action groups may be used for a
particular user interface. In fact, it is expected that most nontrivial
applications will make use of multiple groups. For example, in an application
that can edit multiple documents, one group holding global actions
(e.g. quit, about, new), and one group per document holding actions that
act on that document (eg. save, cut/copy/paste, etc). Each window's menus
would be constructed from a combination of two action groups.
Accelerators are handled by the GTK+ accelerator map. All actions are assigned an
accelerator path (which normally has the form
<Actions>/group-name/action-name)
and a shortcut is associated with this accelerator path. All menuitems and
toolitems take on this accelerator path. The GTK+ accelerator map code makes
sure that the correct shortcut is displayed next to the menu item.
The GtkActionGroup struct contains only private
members and should not be accessed directly.
@actiongroup: the object which received the signal.
@arg1:
@widget:
@actiongroup: the object which received the signal.
@arg1:
@widget:
@actiongroup: the object which received the signal.
@arg1:
@actiongroup: the object which received the signal.
@arg1:
@name:
@Returns:
@action_group:
@Returns:
@action_group:
@Returns:
@action_group:
@sensitive:
@action_group:
@Returns:
@action_group:
@visible:
@action_group:
@action_name:
@Returns:
@action_group:
@Returns:
@action_group:
@action:
@action_group:
@action:
@accelerator:
@action_group:
@action:
GtkActionEntry structs are used with
gtk_action_group_add_actions() to construct actions.
@name: The name of the action.
@stock_id: The stock id for the action.
@label: The label for the action. This field should typically be marked for
translation, see gtk_action_group_set_translation_domain().
@accelerator: The accelerator for the action, in the format understood by
gtk_accelerator_parse().
@tooltip: The tooltip for the action. This field should typically be marked
for translation, see gtk_action_group_set_translation_domain().
@callback: The function to call when the action is activated.
@action_group:
@entries:
@n_entries:
@user_data:
@action_group:
@entries:
@n_entries:
@user_data:
@destroy:
GtkToggleActionEntry structs are used with
gtk_action_group_add_toggle_actions() to construct toggle actions.
@name: The name of the action.
@stock_id: The stock id for the action.
@label: The label for the action. This field should typically be marked for
translation, see gtk_action_group_set_translation_domain().
@accelerator: The accelerator for the action, in the format understood by
gtk_accelerator_parse().
@tooltip: The tooltip for the action. This field should typically be marked
for translation, see gtk_action_group_set_translation_domain().
@callback: The function to call when the action is activated.
@is_active: The initial state of the toggle action.
@action_group:
@entries:
@n_entries:
@user_data:
@action_group:
@entries:
@n_entries:
@user_data:
@destroy:
GtkRadioActionEntry structs are used with
gtk_action_group_add_radio_actions() to construct groups of radio actions.
@name: The name of the action.
@stock_id: The stock id for the action.
@label: The label for the action. This field should typically be marked for
translation, see gtk_action_group_set_translation_domain().
@accelerator: The accelerator for the action, in the format understood by
gtk_accelerator_parse().
@tooltip: The tooltip for the action. This field should typically be marked for
translation, see gtk_action_group_set_translation_domain().
@value: The value to set on the radio action. See gtk_radio_action_get_current_value().
@action_group:
@entries:
@n_entries:
@value:
@on_change:
@user_data:
@action_group:
@entries:
@n_entries:
@value:
@on_change:
@user_data:
@destroy:
@action_group:
@func:
@data:
@notify:
@action_group:
@domain:
@action_group:
@string:
@Returns: