Add missing ownership transfer annotations

This commit is contained in:
Emmanuele Bassi 2020-02-26 10:29:59 +00:00
parent 3c2312a2dd
commit 303e20226c
3 changed files with 10 additions and 8 deletions

View File

@ -367,7 +367,8 @@ gtk_drop_controller_motion_contains_pointer (GtkDropControllerMotion *self)
*
* Returns the value of the GtkDropControllerMotion:drop property.
*
* Returns: The #GdkDrop currently happening within @self or %NULL if none
* Returns: (transfer none) (nullable): The #GdkDrop currently happening
* within @self or %NULL if none
*/
GdkDrop *
gtk_drop_controller_motion_get_drop (GtkDropControllerMotion *self)

View File

@ -1459,9 +1459,9 @@ gtk_icon_theme_set_search_path (GtkIconTheme *self,
*
* Gets the current search path. See gtk_icon_theme_set_search_path().
*
* Returns: (element-type filename):
* a list of icon theme path directories or %NULL.
* The returned value should be freed with g_strfreev().
* Returns: (transfer full) (array zero-terminated=1) (element-type filename) (nullable):
* a list of icon theme path directories or %NULL.
* The returned value should be freed with g_strfreev().
*/
char **
gtk_icon_theme_get_search_path (GtkIconTheme *self)
@ -1552,8 +1552,9 @@ gtk_icon_theme_set_resource_path (GtkIconTheme *self,
*
* See gtk_icon_theme_set_resource_path().
*
* Returns: A list of resource paths or %NULL.
* The returned value should be freed with g_strfreev().
* Returns: (transfer full) (array zero-terminated=1) (element-type utf8) (nullable):
* A list of resource paths or %NULL.
* The returned value should be freed with g_strfreev().
*/
char **
gtk_icon_theme_get_resource_path (GtkIconTheme *self)

View File

@ -260,8 +260,8 @@ G_DEFINE_BOXED_TYPE (GtkTreeRowData, gtk_tree_row_data,
*
* Creates a content provider for dragging @path from @tree_model.
*
* Returns: a new #GdkContentProvider
**/
* Returns: (transfer full): a new #GdkContentProvider
*/
GdkContentProvider *
gtk_tree_create_row_drag_content (GtkTreeModel *tree_model,
GtkTreePath *path)