[glib/glib-2-72: 14/39] GActionGroup: Fix ownership transfer annotation for query_action()




commit 38d727524af9fd0c3b5ca6ab73f2e1f480808597
Author: Andy Holmes <andrew g r holmes gmail com>
Date:   Sun Sep 4 17:29:39 2022 -0700

    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.
    
    (cherry-picked from commit 1eb1a47a50f31b2cea71cf8c94c8989727abb98c)

 gio/gactiongroup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gactiongroup.c b/gio/gactiongroup.c
index ecd3af1c33..7c7b0e7f82 100644
--- a/gio/gactiongroup.c
+++ b/gio/gactiongroup.c
@@ -739,8 +739,8 @@ g_action_group_action_state_changed (GActionGroup *action_group,
  * @action_group: a #GActionGroup
  * @action_name: the name of an action in the group
  * @enabled: (out): if the action is presently enabled
- * @parameter_type: (out) (optional): the parameter type, or %NULL if none needed
- * @state_type: (out) (optional): the state type, or %NULL if stateless
+ * @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
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]