mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
310a0d4fcc
commit
5a188a9f13
10
ChangeLog
10
ChangeLog
@ -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):
|
||||||
|
@ -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):
|
||||||
|
@ -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):
|
||||||
|
@ -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):
|
||||||
|
@ -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):
|
||||||
|
@ -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):
|
||||||
|
@ -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):
|
||||||
|
@ -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));
|
||||||
|
@ -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" {
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user