summaryrefslogtreecommitdiff
path: root/gtk/gtkvpaned.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-29 00:15:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-29 00:15:11 +0000
commit7dfb78f88292a96f537c3d265f14b4fdc7588649 (patch)
tree2c0028d4c83293459f2e75881d89ddbafd7c0829 /gtk/gtkvpaned.c
parentfe60d43a26380580e54ddec62a3746253f07cc0d (diff)
downloadgtk+-7dfb78f88292a96f537c3d265f14b4fdc7588649.tar.gz
Don't show the window unless the widget is mapped. (#76742, Dennis
Thu Mar 28 18:38:30 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Don't show the window unless the widget is mapped. (#76742, Dennis Björklund, Soeren Sandmann)
Diffstat (limited to 'gtk/gtkvpaned.c')
-rw-r--r--gtk/gtkvpaned.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c
index 39316f8668..47d12ddc2f 100644
--- a/gtk/gtkvpaned.c
+++ b/gtk/gtkvpaned.c
@@ -170,9 +170,10 @@ gtk_vpaned_size_allocate (GtkWidget *widget,
paned->handle_pos.width = MAX (1, (gint) widget->allocation.width - 2 * border_width);
paned->handle_pos.height = handle_size;
- if (GTK_WIDGET_REALIZED(widget))
+ if (GTK_WIDGET_REALIZED (widget))
{
- gdk_window_show (paned->handle);
+ if (GTK_WIDGET_MAPPED (widget))
+ gdk_window_show (paned->handle);
gdk_window_move_resize (paned->handle,
paned->handle_pos.x,
paned->handle_pos.y,