Gio.ActionEntry¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
activate |
r |
the callback to connect to the “activate” signal of the action. Since GLib 2.40, this can be |
|
change_state |
r |
the callback to connect to the “change-state” signal of the action. All stateful actions should provide a handler here; stateless actions should not. |
|
name |
r/w |
the name of the action |
|
padding |
[ |
r |
|
parameter_type |
r/w |
the type of the parameter that must be passed to the activate function for this action, given as a single |
|
state |
r/w |
the initial state for this action, given in GVariant text format. The state is parsed with no extra type information, so type tags must be added to the string if they are necessary. Stateless actions should give |
Methods¶
None
Details¶
- class Gio.ActionEntry¶
This struct defines a single action. It is for use with
Gio.ActionMap.add_action_entries
().The order of the items in the structure are intended to reflect frequency of use. It is permissible to use an incomplete initialiser in order to leave some of the later values as
None
. All values after name are optional. Additional optional fields may be added in the future.See
Gio.ActionMap.add_action_entries
() for an example.