This is a utility function for GtkActivatable implementors.
Get the main Gtk struct
Gets the related gtk.Action for activatable.
Gets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance.
Sets the related action on the activatable object.
Sets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance
This is called to update the activatable completely, this is called internally when the related-action property is set or unset and by the implementing class when use-action-appearance changes.
Activatable widgets can be connected to a gtk.Action and reflects the state of its action. A GtkActivatable can also provide feedback through its action, as they are responsible for activating their related actions.
Implementing GtkActivatable
When extending a class that is already GtkActivatable; it is only necessary to implement the [GtkActivatable-|GtkActivatable-]>Action.properties and [GtkActivatable-|GtkActivatable-]>update() methods and chain up to the parent implementation, however when introducing a new GtkActivatable class; the related-action and use-action-appearance properties need to be handled by the implementor. Handling these properties is mostly a matter of installing the action pointer and boolean flag on your instance, and calling gtk_activatable_do_set_related_action() and gtk_activatable_sync_action_properties() at the appropriate times.
A class fragment implementing GtkActivatable