From 9e9eae3ad4a46480841cba5bebda78b153240140 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Mon, 13 Jan 2020 12:14:08 +1300 Subject: [PATCH] Add missing transfer notation for function return types. --- gtk/gtkbuilderscope.c | 4 ++-- gtk/gtkdragdest.c | 2 +- gtk/gtkdragsource.c | 4 ++-- gtk/gtkpopovermenu.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/gtkbuilderscope.c b/gtk/gtkbuilderscope.c index 8d08e552a8..18f867a476 100644 --- a/gtk/gtkbuilderscope.c +++ b/gtk/gtkbuilderscope.c @@ -412,7 +412,7 @@ gtk_builder_cscope_init (GtkBuilderCScope *self) * Calling this function is only necessary if you want to add custom * callbacks via gtk_builder_cscope_add_callback_symbol(). * - * Returns: a new #GtkBuilderCScope + * Returns: (transfer full): a new #GtkBuilderCScope **/ GtkBuilderScope * gtk_builder_cscope_new (void) @@ -502,7 +502,7 @@ gtk_builder_cscope_add_callback_symbols (GtkBuilderCScope *self, * Fetches a symbol previously added to @self * with gtk_builder_cscope_add_callback_symbol(). * - * Returns: (nullable): The callback symbol in @builder for @callback_name, or %NULL + * Returns: (nullable) (transfer none): The callback symbol in @builder for @callback_name, or %NULL */ GCallback gtk_builder_cscope_lookup_callback_symbol (GtkBuilderCScope *self, diff --git a/gtk/gtkdragdest.c b/gtk/gtkdragdest.c index a7f32bc1c0..b93296f43b 100644 --- a/gtk/gtkdragdest.c +++ b/gtk/gtkdragdest.c @@ -514,7 +514,7 @@ gtk_drag_dest_hierarchy_changed (GtkWidget *widget, * * Returns the underlying #GtkDrop object for an ongoing drag. * - * Returns: (nullable): the #GtkDrop of the current drag operation, or %NULL + * Returns: (nullable) (transfer none): the #GtkDrop of the current drag operation, or %NULL */ GdkDrop * gtk_drop_target_get_drop (GtkDropTarget *dest) diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c index ffa82273d6..3ef11dc7e6 100644 --- a/gtk/gtkdragsource.c +++ b/gtk/gtkdragsource.c @@ -518,7 +518,7 @@ gtk_drag_source_new (void) * * Gets the current content provider of a #GtkDragSource. * - * Returns: the #GtkContentProvider of @source + * Returns: (transfer none): the #GtkContentProvider of @source */ GdkContentProvider * gtk_drag_source_get_content (GtkDragSource *source) @@ -640,7 +640,7 @@ gtk_drag_source_set_icon (GtkDragSource *source, * * Returns the underlying #GtkDrag object for an ongoing drag. * - * Returns: (nullable): the #GdkDrag of the current drag operation, or %NULL + * Returns: (nullable) (transfer none): the #GdkDrag of the current drag operation, or %NULL */ GdkDrag * gtk_drag_source_get_drag (GtkDragSource *source) diff --git a/gtk/gtkpopovermenu.c b/gtk/gtkpopovermenu.c index 06f24532e8..0765c9dd3d 100644 --- a/gtk/gtkpopovermenu.c +++ b/gtk/gtkpopovermenu.c @@ -633,7 +633,7 @@ gtk_popover_menu_set_menu_model (GtkPopoverMenu *popover, * * Returns the menu model used to populate the popover. * - * Returns: the menu model of @popover + * Returns: (transfer none): the menu model of @popover */ GMenuModel * gtk_popover_menu_get_menu_model (GtkPopoverMenu *popover)