2.30 <GRemoteActionGroup>

Interface: <GRemoteActionGroup>

The <GRemoteActionGroup> interface is implemented by <GActionGroup> instances that either transmit action invocations to other processes or receive action invocations in the local process from other processes.

The interface has _full variants of the two methods on <GActionGroup> used to activate actions: action-group:activate-action and action-group:change-action-state. These variants allow a ‘platform data’ <GVariant> to be specified: a dictionary providing context for the action invocation (for example: timestamps, startup notification IDs, etc).

<GDBusActionGroup> implements <GRemoteActionGroup>. This provides a mechanism to send platform data for action invocations over D-Bus.

Additionally, dbus-connection:export-action-group will check if the exported <GActionGroup> implements <GRemoteActionGroup> and use the _full variants of the calls if available. This provides a mechanism by which to receive platform data for action invocations that arrive by way of D-Bus.

Procedures

Method: remote-action-group:activate-action-full self action-name parameter platform-data
Method: activate-action-full self action-name parameter platform-data

Activates the remote action.

This is the same as action-group:activate-action except that it allows for provision of "platform data" to be sent along with the activation request. This typically contains details such as the user interaction timestamp or startup notification information.

platform-data must be non-#f and must have the type G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.

self

Passed: a <GRemoteActionGroup>.

a <GDBusActionGroup>

action-name

Passed: a string.

the name of the action to activate

parameter

Passed: a <GVariant>, or #f.

the optional parameter to the activation

platform-data

Passed: a <GVariant>.

the platform data to send

Method: remote-action-group:change-action-state-full self action-name value platform-data
Method: change-action-state-full self action-name value platform-data

Changes the state of a remote action.

This is the same as action-group:change-action-state except that it allows for provision of "platform data" to be sent along with the state change request. This typically contains details such as the user interaction timestamp or startup notification information.

platform-data must be non-#f and must have the type G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.

self

Passed: a <GRemoteActionGroup>.

a <GRemoteActionGroup>

action-name

Passed: a string.

the name of the action to change the state of

value

Passed: a <GVariant>.

the new requested value for the state

platform-data

Passed: a <GVariant>.

the platform data to send

Virtual methods

Virtual method: remote-action-group:do-activate-action-full implementor self action-name parameter platform-data

Activates the remote action.

This is the same as action-group:activate-action except that it allows for provision of "platform data" to be sent along with the activation request. This typically contains details such as the user interaction timestamp or startup notification information.

platform-data must be non-#f and must have the type G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.

To override it in a new class, give register-type #:vfuncs `((activate-action-full . ,procedure)). The procedure is called as (procedure self action-name parameter platform-data).

implementor

Passed: the class whose implementation to call: a class that implements <GRemoteActionGroup>, or its GType number.

self

Passed: a <GRemoteActionGroup>.

a <GDBusActionGroup>

action-name

Passed: a string.

the name of the action to activate

parameter

Passed: a <GVariant>, or #f.

the optional parameter to the activation

platform-data

Passed: a <GVariant>.

the platform data to send

Virtual method: remote-action-group:do-change-action-state-full implementor self action-name value platform-data

Changes the state of a remote action.

This is the same as action-group:change-action-state except that it allows for provision of "platform data" to be sent along with the state change request. This typically contains details such as the user interaction timestamp or startup notification information.

platform-data must be non-#f and must have the type G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.

To override it in a new class, give register-type #:vfuncs `((change-action-state-full . ,procedure)). The procedure is called as (procedure self action-name value platform-data).

implementor

Passed: the class whose implementation to call: a class that implements <GRemoteActionGroup>, or its GType number.

self

Passed: a <GRemoteActionGroup>.

a <GRemoteActionGroup>

action-name

Passed: a string.

the name of the action to change the state of

value

Passed: a <GVariant>.

the new requested value for the state

platform-data

Passed: a <GVariant>.

the platform data to send