Add missing transfer notation for function return types.
authorRobert Ancell <robert.ancell@canonical.com>
Sun, 12 Jan 2020 23:14:08 +0000 (12:14 +1300)
committerRobert Ancell <robert.ancell@canonical.com>
Sun, 12 Jan 2020 23:14:08 +0000 (12:14 +1300)
gtk/gtkbuilderscope.c
gtk/gtkdragdest.c
gtk/gtkdragsource.c
gtk/gtkpopovermenu.c

index 8d08e552a80317d603d2ff2193a5ca41340ad283..18f867a476ceb6f6fa6bcd3611a8e7c11e419899 100644 (file)
@@ -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,
index a7f32bc1c077b56d4fc4aed5baaeb69caa0c2e4a..b93296f43b10d1b844d8499a1278cc2d0974afd2 100644 (file)
@@ -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)
index ffa82273d6c82b8d03d3eb4e071147d393890e1b..3ef11dc7e69b0aaf11df77d9ce19e094b1946be0 100644 (file)
@@ -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)
index 06f24532e8021f68480f4b231c3858d51dd9a84c..0765c9dd3d435fb70da56d3241c3f20cf6a1bbe4 100644 (file)
@@ -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)