[gtk+] widget: Avoid some type checks when invalidating window
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Avoid some type checks when invalidating window
- Date: Sat, 14 Oct 2017 17:18:56 +0000 (UTC)
commit eee335557c0e4043edd53e8c33ccc23de3dd19ef
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 14 07:25:19 2017 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 8ef04bb..1968ce4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]