Commit 3034145a authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Queue up all the destroys until after we've gone through the panel_list,

2001-10-12  Alex Larsson  <alexl@redhat.com>

	* main.c (kill_free_drawers):
	Queue up all the destroys until after we've gone through
	the panel_list, since the destroys can change the list.
parent 919cd88f
2001-10-12 Alex Larsson <alexl@redhat.com>
* main.c (kill_free_drawers):
Queue up all the destroys until after we've gone through
the panel_list, since the destroys can change the list.
2001-10-11 Alex Larsson <alexl@redhat.com>
* gnome-run.c (simple_contents_shown):
......
......@@ -419,14 +419,19 @@ static void
kill_free_drawers (void)
{
GSList *li;
GSList *to_destroy = NULL;
for (li = panel_list; li != NULL; li = li->next) {
PanelData *pd = li->data;
if (IS_DRAWER_WIDGET (pd->panel) &&
PANEL_WIDGET (BASEP_WIDGET (pd->panel)->panel)->master_widget == NULL) {
status_unparent (pd->panel);
gtk_widget_destroy (pd->panel);
to_destroy = g_slist_prepend (to_destroy, pd->panel);
}
}
g_slist_foreach (to_destroy, (GFunc)gtk_widget_destroy, NULL);
g_slist_free (to_destroy);
}
static void
......
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