summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-17 22:11:56 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-21 00:51:03 -0500
commitb1eaa502dfda1dd727e938ce710c3861f1cad8fe (patch)
tree3cb71e60ccf5c6fdae527c9c4ef2e9bee8f0cd15 /gtk/gtktooltip.c
parentf1cf0eb3fc95c94d5594aa700cbcb12bc32ebc43 (diff)
downloadgtk+-b1eaa502dfda1dd727e938ce710c3861f1cad8fe.tar.gz
events: reorganize getters
Restructure the getters for event fields to be more targeted at particular event types. Update all callers, and replace all direct event struct access with getters. As a side-effect, this drops some unused getters.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index dd04c19e4e..f611b4f562 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -851,7 +851,7 @@ tooltips_enabled (GdkEvent *event)
return FALSE;
}
- gdk_event_get_state (event, &event_state);
+ event_state = gdk_event_get_modifier_state (event);
if ((event_state &
(GDK_BUTTON1_MASK |
GDK_BUTTON2_MASK |
@@ -886,7 +886,7 @@ _gtk_tooltip_handle_event (GtkWidget *target,
event_type = gdk_event_get_event_type (event);
surface = gdk_event_get_surface (event);
- gdk_event_get_coords (event, &dx, &dy);
+ gdk_event_get_position (event, &dx, &dy);
gtk_tooltip_handle_event_internal (event_type, surface, target, dx, dy);
}