[gtk/pick-insensitive2: 8/9] tooltip: Allow tooltips on insensitive widgets again



commit de0942b0b89fa044bceb3116580bb762b488d872
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 7 17:23:06 2019 +0000

    tooltip: Allow tooltips on insensitive widgets again
    
    Use the new argument to gtk_widget_pick to allow picking
    insensitive widgets.
    
    Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1816

 gtk/gtktooltip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index fafc80c8be..3d5a9d0aac 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -434,7 +434,7 @@ _gtk_widget_find_at_coords (GdkSurface *surface,
   if (!event_widget)
     return NULL;
 
-  picked_widget = gtk_widget_pick (event_widget, surface_x, surface_y, 0);
+  picked_widget = gtk_widget_pick (event_widget, surface_x, surface_y, GTK_PICK_ALL);
 
   if (picked_widget != NULL)
     gtk_widget_translate_coordinates (event_widget, picked_widget, surface_x, surface_y, widget_x, widget_y);


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