mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-05 23:40:01 +00:00
Don't ref pixbuf if it is NULL
2009-02-26 Alexander Larsson <alexl@redhat.com> * src/file-manager/fm-directory-view.c (add_submenu): Don't ref pixbuf if it is NULL svn path=/trunk/; revision=15022
This commit is contained in:
parent
bab2a2bc74
commit
23474d5f06
|
@ -1,3 +1,8 @@
|
|||
2009-02-26 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* src/file-manager/fm-directory-view.c (add_submenu):
|
||||
Don't ref pixbuf if it is NULL
|
||||
|
||||
2009-02-25 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* libnautilus-private/nautilus-file-operations.c (copy_files):
|
||||
|
|
|
@ -4212,9 +4212,11 @@ add_submenu (GtkUIManager *ui_manager,
|
|||
escaped_label,
|
||||
NULL,
|
||||
NULL);
|
||||
g_object_set_data_full (G_OBJECT (action), "menu-icon",
|
||||
g_object_ref (pixbuf),
|
||||
g_object_unref);
|
||||
if (pixbuf != NULL) {
|
||||
g_object_set_data_full (G_OBJECT (action), "menu-icon",
|
||||
g_object_ref (pixbuf),
|
||||
g_object_unref);
|
||||
}
|
||||
|
||||
g_object_set (action, "hide-if-empty", FALSE, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue