summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-09-26 23:46:57 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-09-26 23:46:57 +0000
commit6b5d56e39ccc13e3f90da286687ad946c9926fb4 (patch)
treeae7711f095da720586ca7c052cae970537182abe /gtk
parent7a4bc2038fc1b5a94ff89475ea01add4483071a6 (diff)
downloadgdk-pixbuf-6b5d56e39ccc13e3f90da286687ad946c9926fb4.tar.gz
We may be queueing a resize on a toplevel container between the time we
Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcontainer.c (gtk_container_queue_resize): We may be queueing a resize on a toplevel container between the time we show it and when we map it. So, we need to test GTK_WIDGET_VISIBLE() for toplevels, and only use GTK_WIDGET_DRAWABLE() for child windows.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkcontainer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 0869de479..2e9367bb5 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -875,7 +875,8 @@ gtk_container_queue_resize (GtkContainer *container)
if (resize_container)
{
- if (GTK_WIDGET_DRAWABLE (resize_container))
+ if (GTK_WIDGET_VISIBLE (resize_container) &&
+ (GTK_WIDGET_TOPLEVEL (resize_container) || GTK_WIDGET_DRAWABLE (resize_container)))
{
switch (resize_container->resize_mode)
{