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.
This commit is contained in:
Owen Taylor 2000-12-11 16:43:47 +00:00 committed by Owen Taylor
parent 310a0d4fcc
commit 5a188a9f13
10 changed files with 74 additions and 5 deletions

View File

@ -1,3 +1,13 @@
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.
2000-12-11 Havoc Pennington <hp@redhat.com> 2000-12-11 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):

View File

@ -1,3 +1,13 @@
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.
2000-12-11 Havoc Pennington <hp@redhat.com> 2000-12-11 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):

View File

@ -1,3 +1,13 @@
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.
2000-12-11 Havoc Pennington <hp@redhat.com> 2000-12-11 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):

View File

@ -1,3 +1,13 @@
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.
2000-12-11 Havoc Pennington <hp@redhat.com> 2000-12-11 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):

View File

@ -1,3 +1,13 @@
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.
2000-12-11 Havoc Pennington <hp@redhat.com> 2000-12-11 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):

View File

@ -1,3 +1,13 @@
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.
2000-12-11 Havoc Pennington <hp@redhat.com> 2000-12-11 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):

View File

@ -1,3 +1,13 @@
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.
2000-12-11 Havoc Pennington <hp@redhat.com> 2000-12-11 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):

View File

@ -24,6 +24,7 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#include <gdk/gdk.h>
#include "gtksignal.h" #include "gtksignal.h"
#include "gtkinvisible.h" #include "gtkinvisible.h"
@ -80,6 +81,7 @@ static void
gtk_invisible_init (GtkInvisible *invisible) gtk_invisible_init (GtkInvisible *invisible)
{ {
GTK_WIDGET_UNSET_FLAGS (invisible, GTK_NO_WINDOW); GTK_WIDGET_UNSET_FLAGS (invisible, GTK_NO_WINDOW);
GTK_WIDGET_SET_FLAGS (invisible, GTK_TOPLEVEL);
gtk_widget_ref (GTK_WIDGET (invisible)); gtk_widget_ref (GTK_WIDGET (invisible));
gtk_object_sink (GTK_OBJECT (invisible)); gtk_object_sink (GTK_OBJECT (invisible));

View File

@ -27,10 +27,7 @@
#ifndef __GTK_INVISIBLE_H__ #ifndef __GTK_INVISIBLE_H__
#define __GTK_INVISIBLE_H__ #define __GTK_INVISIBLE_H__
#include <gtk/gtkwidget.h>
#include <gdk/gdk.h>
#include <gtk/gtkbin.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1984,7 +1984,7 @@ gtk_widget_queue_resize (GtkWidget *widget)
if (widget->parent) if (widget->parent)
gtk_container_queue_resize (GTK_CONTAINER (widget->parent)); gtk_container_queue_resize (GTK_CONTAINER (widget->parent));
else if (GTK_WIDGET_TOPLEVEL (widget)) else if (GTK_WIDGET_TOPLEVEL (widget) && GTK_IS_CONTAINER (widget))
gtk_container_queue_resize (GTK_CONTAINER (widget)); gtk_container_queue_resize (GTK_CONTAINER (widget));
} }