From eee335557c0e4043edd53e8c33ccc23de3dd19ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 14 Oct 2017 07:25:19 +0200 Subject: [PATCH] widget: Avoid some type checks when invalidating window Use the private _gtk_widget_get_has_window instead of the public version --- gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 8ef04bb5c1..1968ce4ce4 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -5267,7 +5267,7 @@ gtk_widget_queue_draw_region (GtkWidget *widget, /* Look for the parent with a window and invalidate @region in there. */ parent = widget; - while (parent != NULL && !gtk_widget_get_has_window (parent)) + while (parent != NULL && !_gtk_widget_get_has_window (parent)) parent = _gtk_widget_get_parent (parent); g_assert (parent != NULL);