widget: Avoid some type checks when invalidating window

Use the private _gtk_widget_get_has_window instead of the public version
This commit is contained in:
Timm Bäder 2017-10-14 07:25:19 +02:00
parent 0be1ad437a
commit eee335557c

View File

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