Fix transfer of GtkTreeExpander.get_item()

We return a full reference to the item.

Fixes: #3428
This commit is contained in:
Emmanuele Bassi 2020-12-02 19:09:10 +00:00
parent 13f9993007
commit 0c8de4e561

View File

@ -379,7 +379,7 @@ gtk_tree_expander_get_property (GObject *object,
break;
case PROP_ITEM:
g_value_set_object (value, gtk_tree_expander_get_item (self));
g_value_take_object (value, gtk_tree_expander_get_item (self));
break;
case PROP_LIST_ROW:
@ -737,10 +737,13 @@ gtk_tree_expander_set_child (GtkTreeExpander *self,
*
* Forwards the item set on the #GtkTreeListRow that @self is managing.
*
* This call is essentially equivalent to calling
* `gtk_tree_list_row_get_item (gtk_tree_expander_get_list_row (@self))`.
* This call is essentially equivalent to calling:
*
* Returns: (nullable) (transfer none) (type GObject): The item of the row
* |[<!-- language="C" -->
* gtk_tree_list_row_get_item (gtk_tree_expander_get_list_row (@self));
* ]|
*
* Returns: (nullable) (transfer full) (type GObject): The item of the row
**/
gpointer
gtk_tree_expander_get_item (GtkTreeExpander *self)