diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2007-10-10 09:31:36 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@src.gnome.org> | 2007-10-10 09:31:36 +0000 |
commit | 3ca1e0cd2d6ca7551d205f4bdbc7e1588669f6cf (patch) | |
tree | 1ab2356b456399fd72f4dfe5a9d12f9c51dff8a9 /gtk/gtkrecentmanager.c | |
parent | 2ad0ef4632b4c2af61da4ca7a3e1d4faa0715b9d (diff) | |
download | gtk+-3ca1e0cd2d6ca7551d205f4bdbc7e1588669f6cf.tar.gz |
Document that you need to unref the returned GdkPixbuf. (#484132,
2007-10-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c (gtk_recent_info_get_icon): Document
that you need to unref the returned GdkPixbuf. (#484132,
Christian Persch)
(build_recent_info): Use g_slist_prepend() when building
the applications list.
svn path=/trunk/; revision=18904
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r-- | gtk/gtkrecentmanager.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index 4022b46c3c..2e21d09c2b 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -1140,8 +1140,7 @@ build_recent_info (GBookmarkFile *bookmarks, app_info->count = count; app_info->stamp = stamp; - info->applications = g_slist_append (info->applications, - app_info); + info->applications = g_slist_prepend (info->applications, app_info); g_hash_table_replace (info->apps_lookup, app_info->name, app_info); } @@ -1936,7 +1935,8 @@ get_icon_fallback (const gchar *icon_name, * * Retrieves the icon of size @size associated to the resource MIME type. * - * Return value: a #GdkPixbuf containing the icon, or %NULL. + * Return value: a #GdkPixbuf containing the icon, or %NULL. Use + * g_object_unref() when finished using the icon. * * Since: 2.10 */ @@ -2202,7 +2202,8 @@ gtk_recent_info_get_short_name (GtkRecentInfo *info) * is local, it returns a local path; if the resource is not local, * it returns the UTF-8 encoded content of gtk_recent_info_get_uri(). * - * Return value: a UTF-8 string containing the resource's URI or %NULL + * Return value: a newly allocated UTF-8 string containing the + * resource's URI or %NULL. Use g_free() when done using it. * * Since: 2.10 */ |