1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2026-10-24 00:49:00 +03:00

gactiongroup: Annotate nullable query outputs

g_action_group_query_action() sets parameter_type to NULL for actions
without a parameter, state_type and state to NULL for stateless
actions, and state_hint to NULL when there is no hint. The matching
g_action_group_get_action_*() getters already mark these results as
nullable.
This commit is contained in:
Eugenio Depalo
2026-10-20 17:18:40 +02:00
parent 62966a3b3a
commit 7f104fcf95

View File

@@ -734,10 +734,10 @@ g_action_group_action_state_changed (GActionGroup *action_group,
* @action_group: a [type@Gio.ActionGroup]
* @action_name: the name of an action in the group
* @enabled: (out): if the action is presently enabled
* @parameter_type: (out) (transfer none) (optional): the parameter type, or `NULL` if none needed
* @state_type: (out) (transfer none) (optional): the state type, or `NULL` if stateless
* @state_hint: (out) (optional): the state hint, or `NULL` if none
* @state: (out) (optional): the current state, or `NULL` if stateless
* @parameter_type: (out) (transfer none) (optional) (nullable): the parameter type, or `NULL` if none needed
* @state_type: (out) (transfer none) (optional) (nullable): the state type, or `NULL` if stateless
* @state_hint: (out) (optional) (nullable): the state hint, or `NULL` if none
* @state: (out) (optional) (nullable): the current state, or `NULL` if stateless
*
* Queries all aspects of the named action within an @action_group.
*