Really free the list. (#158422, Morten Welinder)

2004-11-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkimagemenuitem.c (gtk_image_menu_item_setting_changed):
	* gtk/gtkbutton.c (gtk_button_setting_changed): Really free the
	list.  (#158422, Morten Welinder)
This commit is contained in:
Matthias Clasen 2004-11-16 02:06:20 +00:00 committed by Matthias Clasen
parent a5869f4c50
commit d651bb25cd
6 changed files with 36 additions and 10 deletions

View File

@ -1,6 +1,12 @@
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed):
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_setting_changed):
* gtk/gtkbutton.c (gtk_button_setting_changed): Really free the
list. (#158422, Morten Welinder)
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed)
* gtk/gtkbutton.c (gtk_button_screen_changed): Use
GPOINTER_TO_UINT()/GUINT_TO_POINTER() for guints. (#158420,
Morten Welinder)

View File

@ -1,6 +1,12 @@
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed):
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_setting_changed):
* gtk/gtkbutton.c (gtk_button_setting_changed): Really free the
list. (#158422, Morten Welinder)
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed)
* gtk/gtkbutton.c (gtk_button_screen_changed): Use
GPOINTER_TO_UINT()/GUINT_TO_POINTER() for guints. (#158420,
Morten Welinder)

View File

@ -1,6 +1,12 @@
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed):
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_setting_changed):
* gtk/gtkbutton.c (gtk_button_setting_changed): Really free the
list. (#158422, Morten Welinder)
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed)
* gtk/gtkbutton.c (gtk_button_screen_changed): Use
GPOINTER_TO_UINT()/GUINT_TO_POINTER() for guints. (#158420,
Morten Welinder)

View File

@ -1,6 +1,12 @@
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed):
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_setting_changed):
* gtk/gtkbutton.c (gtk_button_setting_changed): Really free the
list. (#158422, Morten Welinder)
2004-11-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimagemenuitem.c (gtk_image_menu_item_screen_changed)
* gtk/gtkbutton.c (gtk_button_screen_changed): Use
GPOINTER_TO_UINT()/GUINT_TO_POINTER() for guints. (#158420,
Morten Welinder)

View File

@ -1672,12 +1672,13 @@ traverse_container (GtkWidget *widget,
static void
gtk_button_setting_changed (GtkSettings *settings)
{
GList *list;
GList *list, *l;
list = gtk_window_list_toplevels ();
for (; list; list = list->next)
gtk_container_forall (GTK_CONTAINER (list->data), traverse_container, NULL);
for (l = list; l; l = l->next)
gtk_container_forall (GTK_CONTAINER (l->data),
traverse_container, NULL);
g_list_free (list);
}

View File

@ -566,12 +566,13 @@ traverse_container (GtkWidget *widget,
static void
gtk_image_menu_item_setting_changed (GtkSettings *settings)
{
GList *list;
GList *list, *l;
list = gtk_window_list_toplevels ();
for (; list; list = list->next)
gtk_container_forall (GTK_CONTAINER (list->data), traverse_container, NULL);
for (l = list; l; l = l->next)
gtk_container_forall (GTK_CONTAINER (l->data),
traverse_container, NULL);
g_list_free (list);
}