Sets our main struct and passes it to the parent class.
Creates a new ToggleAction object. To add the action to a ActionGroup and set the accelerator for the action, call gtk.ActionGroup.ActionGroup.addActionWithAccel().
Creates a new #GtkToggleAction object. To add the action to a #GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel().
Should be connected if you wish to perform an action whenever the #GtkToggleAction state is changed.
Returns the checked state of the toggle action.
Returns whether the action should have proxies like a radio action.
the main Gtk struct as a void*
Get the main Gtk struct
Sets the checked state on the toggle action.
Sets whether the action should have proxies like a radio action.
Emits the “toggled” signal on the toggle action.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Gets the stock id of action. Since 2.16
Sets the stock id on action Since 2.16
This function is intended for use by action implementations to create icons displayed in the proxy widgets. Since 2.4
Creates a menu item widget that proxies for the given action. Since 2.4
Creates a toolbar item widget that proxies for the given action. Since 2.4
If action provides a GtkMenu widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu. Since 2.12
Emits the “activate” signal on the specified action, if it isn't insensitive. This gets called by the proxy widgets when they get activated.
Disable activation signals from the action
Installs the accelerator for @action if @action has an accel path and group. See gtk_action_set_accel_path() and gtk_action_set_accel_group()
Undoes the effect of one call to gtk_action_connect_accelerator().
Returns the accel closure for this action.
Returns the accel path for this action.
Returns whether @action's menu item proxies will always show their image, if available.
Gets the gicon of @action.
Gets the icon name of @action.
Checks whether @action is important or not
Gets the label text of @action.
Returns the name of the action.
Returns the proxy widgets for an action. See also gtk_activatable_get_related_action().
Returns whether the action itself is sensitive. Note that this doesn’t necessarily mean effective sensitivity. See gtk_action_is_sensitive() for that.
Gets the short label text of @action.
Gets the tooltip text of @action.
Returns whether the action itself is visible. Note that this doesn’t necessarily mean effective visibility. See gtk_action_is_sensitive() for that.
Checks whether @action is visible when horizontal
Checks whether @action is visible when horizontal
Returns whether the action is effectively sensitive.
Returns whether the action is effectively visible.
Sets the #GtkAccelGroup in which the accelerator for this action will be installed.
Sets the accel path for this action. All proxy widgets associated with the action will have this accel path, so that their accelerators are consistent.
Sets whether @action's menu item proxies will ignore the #GtkSettings:gtk-menu-images setting and always show their image, if available.
Sets the icon of @action.
Sets the icon name on @action
Sets whether the action is important, this attribute is used primarily by toolbar items to decide whether to show a label or not.
Sets the label of @action.
Sets the :sensitive property of the action to @sensitive. Note that this doesn’t necessarily mean effective sensitivity. See gtk_action_is_sensitive() for that.
Sets a shorter label text on @action.
Sets the stock id on @action
Sets the tooltip text on @action
Sets the :visible property of the action to @visible. Note that this doesn’t necessarily mean effective visibility. See gtk_action_is_visible() for that.
Sets whether @action is visible when horizontal
Sets whether @action is visible when vertical
Reenable activation signals from the action
The "activate" signal is emitted when the action is activated.
A #GtkToggleAction corresponds roughly to a #GtkCheckMenuItem. It has an “active” state specifying whether the action has been checked or not.