gtk.actionable

Module for [Actionable] interface

Types 2

interfaceActionable

This interface provides a convenient way of associating widgets with actions on a #GtkApplicationWindow or #GtkApplication.

It primarily consists of two properties: #GtkActionable:action-name and #GtkActionable:action-target. There are also some convenience APIs for setting these properties.

The action will be looked up in action groups that are found among the widgets ancestors. Most commonly, these will be the actions with the “win.” or “app.” prefix that are associated with the #GtkApplicationWindow or #GtkApplication, but other action groups that are added with [gtk.widget.Widget.insertActionGroup] will be consulted as well.

Methods
string actionName() @property
void actionName(string propval) @property
void actionTarget(glib.variant.Variant propval) @property
string getActionName()Gets the action name for actionable.
glib.variant.Variant getActionTargetValue()Gets the current target value of actionable.
void setActionName(string actionName = null)Specifies the name of the action with which this widget should be associated. If action_name is null then the widget will be unassociated from any previous action.
void setActionTargetValue(glib.variant.Variant targetValue = null)Sets the target value of an actionable widget.
void setDetailedActionName(string detailedActionName)Sets the action-name and associated string target value of an actionable widget.
Methods
T actionName(string propval)