GActionGroup: Fix ownership transfer annotation for query_action()

The `(transfer none)` behaviour for `parameter_type` and `state_type`
parameters is implicit with the `const` attribute, but was incorrectly
determined to be `(transfer full)` in the GIR.

Add explicit `(transfer none)` annotations for these two parameters.
This commit is contained in:
Andy Holmes 2022-09-04 17:29:39 -07:00
parent 72ed39a8c2
commit 1eb1a47a50
No known key found for this signature in database

View File

@ -741,8 +741,8 @@ g_action_group_action_state_changed (GActionGroup *action_group,
* @action_group: a #GActionGroup * @action_group: a #GActionGroup
* @action_name: the name of an action in the group * @action_name: the name of an action in the group
* @enabled: (out): if the action is presently enabled * @enabled: (out): if the action is presently enabled
* @parameter_type: (out) (optional): the parameter type, or %NULL if none needed * @parameter_type: (out) (transfer none) (optional): the parameter type, or %NULL if none needed
* @state_type: (out) (optional): the state type, or %NULL if stateless * @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_hint: (out) (optional): the state hint, or %NULL if none
* @state: (out) (optional): the current state, or %NULL if stateless * @state: (out) (optional): the current state, or %NULL if stateless
* *