diff options
author | Tim Janik <timj@src.gnome.org> | 1998-03-24 03:34:38 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-03-24 03:34:38 +0000 |
commit | 7de464ffe8c4c6b4cd10210c239705689358088b (patch) | |
tree | dcb131b79fab93a35dfd364aaf4e210c42bf570e /gtk/gtkbox.c | |
parent | c88afb81f9d63d1e1657b0fff1a0bffd09b47e1c (diff) | |
download | gdk-pixbuf-7de464ffe8c4c6b4cd10210c239705689358088b.tar.gz |
save the widgets visibility flag for evaluation after the widget got
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index dc3a38a65..5b7c61d8c 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -560,13 +560,16 @@ gtk_box_remove (GtkContainer *container, if (child->widget == widget) { + gboolean visible; + + visible = GTK_WIDGET_VISIBLE (widget); gtk_widget_unparent (widget); box->children = g_list_remove_link (box->children, children); g_list_free (children); g_free (child); - if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container)) + if (visible && GTK_WIDGET_VISIBLE (container)) gtk_widget_queue_resize (GTK_WIDGET (container)); break; |