forked from AuroraMiddleware/gtk
Don't invalidate a widget if it or one of its ancestors isn't mapped.
Sun Oct 13 17:41:53 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate a widget if it or one of its ancestors isn't mapped.
This commit is contained in:
parent
c7346aa2f5
commit
7fe315b58d
@ -1,3 +1,8 @@
|
||||
Sun Oct 13 17:41:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate
|
||||
a widget if it or one of its ancestors isn't mapped.
|
||||
|
||||
Sun Oct 13 17:21:15 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* tests/testgtk.c (window_controls), tests/testgtk.c
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Oct 13 17:41:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate
|
||||
a widget if it or one of its ancestors isn't mapped.
|
||||
|
||||
Sun Oct 13 17:21:15 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* tests/testgtk.c (window_controls), tests/testgtk.c
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Oct 13 17:41:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate
|
||||
a widget if it or one of its ancestors isn't mapped.
|
||||
|
||||
Sun Oct 13 17:21:15 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* tests/testgtk.c (window_controls), tests/testgtk.c
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Oct 13 17:41:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate
|
||||
a widget if it or one of its ancestors isn't mapped.
|
||||
|
||||
Sun Oct 13 17:21:15 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* tests/testgtk.c (window_controls), tests/testgtk.c
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Oct 13 17:41:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate
|
||||
a widget if it or one of its ancestors isn't mapped.
|
||||
|
||||
Sun Oct 13 17:21:15 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* tests/testgtk.c (window_controls), tests/testgtk.c
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Oct 13 17:41:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate
|
||||
a widget if it or one of its ancestors isn't mapped.
|
||||
|
||||
Sun Oct 13 17:21:15 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* tests/testgtk.c (window_controls), tests/testgtk.c
|
||||
|
@ -2051,11 +2051,17 @@ gtk_widget_queue_clear_area (GtkWidget *widget,
|
||||
gint height)
|
||||
{
|
||||
GdkRectangle invalid_rect;
|
||||
GtkWidget *w;
|
||||
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
|
||||
if (!(widget->window && gdk_window_is_viewable (widget->window)))
|
||||
if (!GTK_WIDGET_REALIZED (widget))
|
||||
return;
|
||||
|
||||
/* Just return if the widget or one of its ancestors isn't mapped */
|
||||
for (w = widget; w != NULL; w = w->parent)
|
||||
if (!GTK_WIDGET_MAPPED (w))
|
||||
return;
|
||||
|
||||
/* Find the correct widget */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user