Actions represent operations that the user can be perform, along with some information how it should be presented in the interface. Each action provides methods to create icons, menu items and toolbar items representing itself.
As well as the callback that is called when the action gets activated, the following also gets associated with the action:
The action will also have some state information:
Apart from regular actions, there are toggle
actions, which can be toggled between two states and
radio actions, of which only one in a group can be in the "active" state. Other actions can be implemented as
Action subclasses.
Each action can have one or more proxy menu item, toolbar button or other proxy widgets. Proxies mirror the state of the action (text label, tooltip, icon, visible, sensitive, etc), and should change when the action's state changes. When the proxy is activated, it should activate its action.
true, the action's menu item proxies will ignore the GtkSettings:gtk-menu-images
setting and always show their image, if available.
null
, GTK+ uses the stock label specified via the stock-id property.
true, toolitem proxies for this action are represented in the toolbar overflow menu.
action if action has an accel path and group.
See set_accel_path and
set_accel_group
action provides a Menu widget as a submenu
for the menu item or the toolbar item it creates, this function returns an instance of that menu.
not destroy the widget, however.
action's menu item proxies will ignore the
GtkSettings:gtk-menu-images setting and always show their image, if available.
action.
action.
action is important or not
action.
gtk_widget_get_action.
action.
action.
action.
action is visible when horizontal
action is visible when horizontal
action's menu item proxies will ignore the GtkSettings:gtk-menu-images
setting and always show their image, if available.
action.
action
action.
::sensitive property of the action to sensitive. Note that this
doesn't necessarily mean effective sensitivity. See is_sensitive for that.
action.
action
action
::visible property of the action to visible. Note that this doesn't
necessarily mean effective visibility. See is_visible for that.
action is visible when horizontal
action is visible when vertical
