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:
Soeren Sandmann 2002-10-13 15:42:28 +00:00 committed by Søren Sandmann Pedersen
parent c7346aa2f5
commit 7fe315b58d
7 changed files with 37 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -2051,10 +2051,16 @@ 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 */