[gtk/readonly-events-1: 108/149] tooltip: stop using gtk_get_event_target



commit 61c32f3651219f997fffee68baae3244028b5cd4
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 17 21:21:05 2020 -0500

    tooltip: stop using gtk_get_event_target

 gtk/gtktooltip.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 1112e6a374..138b6e67d5 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -36,6 +36,7 @@
 #include "gtkwidgetprivate.h"
 #include "gtkaccessible.h"
 #include "gtknative.h"
+#include "gdk/gdkeventsprivate.h"
 
 /**
  * SECTION:gtktooltip
@@ -887,7 +888,7 @@ _gtk_tooltip_handle_event (GdkEvent *event)
   event_type = gdk_event_get_event_type (event);
   surface = gdk_event_get_surface (event);
   gdk_event_get_coords (event, &dx, &dy);
-  target = gtk_get_event_target (event);
+  target = GTK_WIDGET (gdk_event_get_target (event));
 
   gtk_tooltip_handle_event_internal (event_type, surface, target, dx, dy);
 }


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