Merge branch 'missing-transfer-notation' into 'master'

Add missing transfer notation for function return types.

See merge request GNOME/gtk!1302
This commit is contained in:
Matthias Clasen 2020-01-13 00:49:25 +00:00
commit 4d55d23c1a
4 changed files with 6 additions and 6 deletions

View File

@ -412,7 +412,7 @@ gtk_builder_cscope_init (GtkBuilderCScope *self)
* Calling this function is only necessary if you want to add custom * Calling this function is only necessary if you want to add custom
* callbacks via gtk_builder_cscope_add_callback_symbol(). * callbacks via gtk_builder_cscope_add_callback_symbol().
* *
* Returns: a new #GtkBuilderCScope * Returns: (transfer full): a new #GtkBuilderCScope
**/ **/
GtkBuilderScope * GtkBuilderScope *
gtk_builder_cscope_new (void) gtk_builder_cscope_new (void)
@ -502,7 +502,7 @@ gtk_builder_cscope_add_callback_symbols (GtkBuilderCScope *self,
* Fetches a symbol previously added to @self * Fetches a symbol previously added to @self
* with gtk_builder_cscope_add_callback_symbol(). * 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 GCallback
gtk_builder_cscope_lookup_callback_symbol (GtkBuilderCScope *self, gtk_builder_cscope_lookup_callback_symbol (GtkBuilderCScope *self,

View File

@ -514,7 +514,7 @@ gtk_drag_dest_hierarchy_changed (GtkWidget *widget,
* *
* Returns the underlying #GtkDrop object for an ongoing drag. * 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 * GdkDrop *
gtk_drop_target_get_drop (GtkDropTarget *dest) gtk_drop_target_get_drop (GtkDropTarget *dest)

View File

@ -518,7 +518,7 @@ gtk_drag_source_new (void)
* *
* Gets the current content provider of a #GtkDragSource. * Gets the current content provider of a #GtkDragSource.
* *
* Returns: the #GtkContentProvider of @source * Returns: (transfer none): the #GtkContentProvider of @source
*/ */
GdkContentProvider * GdkContentProvider *
gtk_drag_source_get_content (GtkDragSource *source) 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 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 * GdkDrag *
gtk_drag_source_get_drag (GtkDragSource *source) gtk_drag_source_get_drag (GtkDragSource *source)

View 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 used to populate the popover.
* *
* Returns: the menu model of @popover * Returns: (transfer none): the menu model of @popover
*/ */
GMenuModel * GMenuModel *
gtk_popover_menu_get_menu_model (GtkPopoverMenu *popover) gtk_popover_menu_get_menu_model (GtkPopoverMenu *popover)