summaryrefslogtreecommitdiff
path: root/gtk/gtkinvisible.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-12-11 16:43:47 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-12-11 16:43:47 +0000
commit5a188a9f13cd4fd4b4ae243796c92cb771313f64 (patch)
treecab83a227b461970b74e3ffeb5e0a64120fbc2d6 /gtk/gtkinvisible.c
parent310a0d4fcca113f1dbc60feaba406f6b5526df43 (diff)
downloadgdk-pixbuf-5a188a9f13cd4fd4b4ae243796c92cb771313f64.tar.gz
Flag invisible widgets as TOPLEVEL.
Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com> * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible widgets as TOPLEVEL. * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume TOPLEVEL widgets are containers. * gtk/gtkinvisible.h: Remove useless include.
Diffstat (limited to 'gtk/gtkinvisible.c')
-rw-r--r--gtk/gtkinvisible.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c
index e7d8cc408..1350a4390 100644
--- a/gtk/gtkinvisible.c
+++ b/gtk/gtkinvisible.c
@@ -24,6 +24,7 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#include <gdk/gdk.h>
#include "gtksignal.h"
#include "gtkinvisible.h"
@@ -80,6 +81,7 @@ static void
gtk_invisible_init (GtkInvisible *invisible)
{
GTK_WIDGET_UNSET_FLAGS (invisible, GTK_NO_WINDOW);
+ GTK_WIDGET_SET_FLAGS (invisible, GTK_TOPLEVEL);
gtk_widget_ref (GTK_WIDGET (invisible));
gtk_object_sink (GTK_OBJECT (invisible));