diff options
author | Owen Taylor <otaylor@src.gnome.org> | 1998-05-01 04:23:59 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-05-01 04:23:59 +0000 |
commit | 05bc6a5b3639869eee69cfa4a2db8b8968b247cb (patch) | |
tree | 58bad8f48d24c88dfc95206defe79dd0464256f6 /gtk/gtkpaned.c | |
parent | e909f843f8e2949144e624ce1af4fd1737396f62 (diff) | |
download | gdk-pixbuf-05bc6a5b3639869eee69cfa4a2db8b8968b247cb.tar.gz |
Merged changes from gtk-1-0. Check ChangeLog for details.
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r-- | gtk/gtkpaned.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 40f656b38..9fbf23ef1 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -349,20 +349,22 @@ gtk_paned_remove (GtkContainer *container, GtkWidget *widget) { GtkPaned *paned; + gboolean was_visible; g_return_if_fail (container != NULL); g_return_if_fail (GTK_IS_PANED (container)); g_return_if_fail (widget != NULL); paned = GTK_PANED (container); - + was_visible = GTK_WIDGET_VISIBLE (widget); + if (paned->child1 == widget) { gtk_widget_unparent (widget); paned->child1 = NULL; - if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container)) + if (was_visible && GTK_WIDGET_VISIBLE (container)) gtk_widget_queue_resize (GTK_WIDGET (container)); } else if (paned->child2 == widget) @@ -371,7 +373,7 @@ gtk_paned_remove (GtkContainer *container, paned->child2 = NULL; - if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container)) + if (was_visible && GTK_WIDGET_VISIBLE (container)) gtk_widget_queue_resize (GTK_WIDGET (container)); } } |