Ref the new icons before unreffing the old ones. (#154468, Morten
2004-10-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new icons before unreffing the old ones. (#154468, Morten Welinder)
This commit is contained in:
committed by
Matthias Clasen
parent
3fa55dca40
commit
caae5c8123
@@ -1,3 +1,8 @@
|
||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new
|
||||
icons before unreffing the old ones. (#154468, Morten Welinder)
|
||||
|
||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new
|
||||
icons before unreffing the old ones. (#154468, Morten Welinder)
|
||||
|
||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new
|
||||
icons before unreffing the old ones. (#154468, Morten Welinder)
|
||||
|
||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new
|
||||
icons before unreffing the old ones. (#154468, Morten Welinder)
|
||||
|
||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
||||
@@ -2655,14 +2655,15 @@ gtk_window_set_icon_list (GtkWindow *window,
|
||||
if (info->icon_list == list) /* check for NULL mostly */
|
||||
return;
|
||||
|
||||
g_list_foreach (list,
|
||||
(GFunc) g_object_ref, NULL);
|
||||
|
||||
g_list_foreach (info->icon_list,
|
||||
(GFunc) g_object_unref, NULL);
|
||||
|
||||
g_list_free (info->icon_list);
|
||||
|
||||
info->icon_list = g_list_copy (list);
|
||||
g_list_foreach (info->icon_list,
|
||||
(GFunc) g_object_ref, NULL);
|
||||
|
||||
g_object_notify (G_OBJECT (window), "icon");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user