get_action_state


Description:

[ Version ( since = "2.28" ) ]
public abstract Variant? get_action_state (string action_name)

Queries the current state of the named action within this.

If the action is not stateful then null will be returned. If the action is stateful then the type of the return value is the type given by get_action_state_type .

The return value (if non-null) should be freed with g_variant_unref when it is no longer required.

Parameters:

this

a ActionGroup

action_name

the name of the action to query

Returns:

the current state of the action