[gtk+] inspector: Actually call the pick() vfunc when picking



commit 794d9d266e35b1eee87221b6687a39aa490c50db
Author: Timm Bäder <mail baedert org>
Date:   Fri Jan 26 17:28:25 2018 +0100

    inspector: Actually call the pick() vfunc when picking
    
    Otherwise, overridden pick vfuncs don't work and we e.g. pick widgets
    scrolled away in a viewport.

 gtk/inspector/inspect-button.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/inspect-button.c b/gtk/inspector/inspect-button.c
index 987eb4f..85a0c17 100644
--- a/gtk/inspector/inspect-button.c
+++ b/gtk/inspector/inspect-button.c
@@ -64,7 +64,7 @@ inspector_pick (GtkWidget *widget,
 
       gtk_widget_get_origin_relative_to_parent (child, &dx, &dy);
 
-      picked = inspector_pick (child, x - dx, y - dy);
+      picked = GTK_WIDGET_GET_CLASS (child)->pick (child, x - dx, y - dy);
       if (picked)
         return picked;
     }


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