[gtk/wip/baedert/transforms7: 44/46] widget: Avoid some type checks in pick() and contains()



commit 559ffca2bd6c5f4a0e4fdfd81e577f82cbf44122
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 ab267b2898..8207871dd4 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]