Commit 5a188a9f authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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.
parent 310a0d4f
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>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
......
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>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
......
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>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
......
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>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
......
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>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
......
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>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
......
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>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
......
......@@ -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));
......
......@@ -27,10 +27,7 @@
#ifndef __GTK_INVISIBLE_H__
#define __GTK_INVISIBLE_H__
#include <gdk/gdk.h>
#include <gtk/gtkbin.h>
#include <gtk/gtkwidget.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -1984,7 +1984,7 @@ gtk_widget_queue_resize (GtkWidget *widget)
if (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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment