ActionGroup.getActionStateType

Queries the type of the state of the named action within action_group.

If the action is stateful then this function returns the #GVariantType of the state. All calls to gio.action_group.ActionGroup.changeActionState must give a #GVariant of this type and gio.action_group.ActionGroup.getActionState will return a #GVariant of the same type.

If the action is not stateful then this function will return null. In that case, gio.action_group.ActionGroup.getActionState will return null and you must not call gio.action_group.ActionGroup.changeActionState.

The state type of a particular action will never change but it is possible for an action to be removed and for a new action to be added with the same name but a different state type.

interface ActionGroup
getActionStateType
(
string actionName
)

Parameters

actionName string

the name of the action to query

Return Value

Type: glib.variant_type.VariantType

the state type, if the action is stateful