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:
parent
69a603cacc
commit
ce2ddb38d7
@ -1,6 +1,7 @@
|
|||||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
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)
|
before unreffing the old ones. (#154468, Morten Welinder)
|
||||||
|
|
||||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
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)
|
before unreffing the old ones. (#154468, Morten Welinder)
|
||||||
|
|
||||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
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)
|
before unreffing the old ones. (#154468, Morten Welinder)
|
||||||
|
|
||||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
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)
|
before unreffing the old ones. (#154468, Morten Welinder)
|
||||||
|
|
||||||
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
2004-10-03 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@ -3125,14 +3125,15 @@ gtk_window_set_default_icon_list (GList *list)
|
|||||||
*/
|
*/
|
||||||
default_icon_serial++;
|
default_icon_serial++;
|
||||||
|
|
||||||
|
g_list_foreach (list,
|
||||||
|
(GFunc) g_object_ref, NULL);
|
||||||
|
|
||||||
g_list_foreach (default_icon_list,
|
g_list_foreach (default_icon_list,
|
||||||
(GFunc) g_object_unref, NULL);
|
(GFunc) g_object_unref, NULL);
|
||||||
|
|
||||||
g_list_free (default_icon_list);
|
g_list_free (default_icon_list);
|
||||||
|
|
||||||
default_icon_list = g_list_copy (list);
|
default_icon_list = g_list_copy (list);
|
||||||
g_list_foreach (default_icon_list,
|
|
||||||
(GFunc) g_object_ref, NULL);
|
|
||||||
|
|
||||||
/* Update all toplevels */
|
/* Update all toplevels */
|
||||||
toplevels = gtk_window_list_toplevels ();
|
toplevels = gtk_window_list_toplevels ();
|
||||||
|
Loading…
Reference in New Issue
Block a user