Activatable widgets can be connected to a #GtkAction 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->sync_action_properties()
and #GtkActivatable->update() methods and chain up to the parent
implementation, however when introducing
a new #GtkActivatable class; the #GtkActivatable:related-action and
#GtkActivatable: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.Activatable.doSetRelatedAction and
gtk.activatable.Activatable.syncActionProperties at the appropriate times.
Activatable widgets can be connected to a #GtkAction 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->sync_action_properties() and #GtkActivatable->update() methods and chain up to the parent implementation, however when introducing a new #GtkActivatable class; the #GtkActivatable:related-action and #GtkActivatable: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.Activatable.doSetRelatedAction and gtk.activatable.Activatable.syncActionProperties at the appropriate times.
A class fragment implementing #GtkActivatable