[gtk] widget: Avoid some type checks in pick() and contains()



commit 2ecb4003be9517bec6d33b56e9a2da6fca711437
Author: Timm Bäder <mail baedert org>
Date:   Tue Feb 19 08:25:49 2019 +0100

    widget: Avoid some type checks in pick() and contains()
    
    We've already verified that the given pointer is a proper GtkWidget, so
    no need to do it all over again.

 gtk/gtkwidget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 22895e8e86..b811c233d5 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11210,7 +11210,7 @@ gtk_widget_contains (GtkWidget  *widget,
   g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
 
   if (gtk_widget_get_pass_through (widget) ||
-      !gtk_widget_is_sensitive (widget) ||
+      !_gtk_widget_is_sensitive (widget) ||
       !_gtk_widget_is_drawable (widget))
     return FALSE;
 
@@ -11249,7 +11249,7 @@ gtk_widget_pick (GtkWidget *widget,
   g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
 
   if (gtk_widget_get_pass_through (widget) ||
-      !gtk_widget_is_sensitive (widget) ||
+      !_gtk_widget_is_sensitive (widget) ||
       !_gtk_widget_is_drawable (widget))
     return NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]