[gtk/readonly-events-1: 10/35] tooltip: stop using gtk_get_event_target
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/readonly-events-1: 10/35] tooltip: stop using gtk_get_event_target
- Date: Tue, 18 Feb 2020 05:23:23 +0000 (UTC)
commit 3028dc467dd23132efd2cdd39b5dcc403a8594c5
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]