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):
	(gtk_window_set_default_icon_list): Ref the new
	icons before unreffing the old ones.  (#154468, Morten Welinder)
This commit is contained in:
Matthias Clasen 2004-10-04 14:52:45 +00:00 committed by Matthias Clasen
parent 69a603cacc
commit ce2ddb38d7
5 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,7 @@
2004-10-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new icons
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -1,6 +1,7 @@
2004-10-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new icons
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -1,6 +1,7 @@
2004-10-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new icons
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -1,6 +1,7 @@
2004-10-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_set_icon_list): Ref the new icons
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -3125,14 +3125,15 @@ gtk_window_set_default_icon_list (GList *list)
*/
default_icon_serial++;
g_list_foreach (list,
(GFunc) g_object_ref, NULL);
g_list_foreach (default_icon_list,
(GFunc) g_object_unref, NULL);
g_list_free (default_icon_list);
default_icon_list = g_list_copy (list);
g_list_foreach (default_icon_list,
(GFunc) g_object_ref, NULL);
/* Update all toplevels */
toplevels = gtk_window_list_toplevels ();