Commit 58034d80 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Steal ATTACHED_MENUS list so its tail isn't freed when we re-set it,

2004-08-25  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_attach_to_widget): Steal ATTACHED_MENUS
	list so its tail isn't freed when we re-set it, noticed
	by Hans Petter Jansson.
parent c1ce74bb
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_attach_to_widget): Steal ATTACHED_MENUS
list so its tail isn't freed when we re-set it, noticed
by Hans Petter Jansson.
* gtk/gtksizegroup.c (gtk_size_group_add_widget): Fix
a typo, noticed by Tim Janik.
......
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_attach_to_widget): Steal ATTACHED_MENUS
list so its tail isn't freed when we re-set it, noticed
by Hans Petter Jansson.
* gtk/gtksizegroup.c (gtk_size_group_add_widget): Fix
a typo, noticed by Tim Janik.
......
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_attach_to_widget): Steal ATTACHED_MENUS
list so its tail isn't freed when we re-set it, noticed
by Hans Petter Jansson.
* gtk/gtksizegroup.c (gtk_size_group_add_widget): Fix
a typo, noticed by Tim Janik.
......
2004-08-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_attach_to_widget): Steal ATTACHED_MENUS
list so its tail isn't freed when we re-set it, noticed
by Hans Petter Jansson.
* gtk/gtksizegroup.c (gtk_size_group_add_widget): Fix
a typo, noticed by Tim Janik.
......
......@@ -1037,7 +1037,7 @@ gtk_menu_attach_to_widget (GtkMenu *menu,
data->detacher = detacher;
g_object_set_data (G_OBJECT (menu), attach_data_key, data);
list = g_object_get_data (G_OBJECT (attach_widget), ATTACHED_MENUS);
list = g_object_steal_data (G_OBJECT (attach_widget), ATTACHED_MENUS);
if (!g_list_find (list, menu))
{
list = g_list_prepend (list, menu);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment