summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturestylus.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-09 13:40:26 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-09 13:43:12 -0400
commitc9fad251311abeafa95db9f88e345ac4e3688b5f (patch)
tree36fdb25d30910e39167af9623dafd49976768fe9 /gtk/gtkgesturestylus.c
parent693200f1eb9fb2784736c80a5ede9a60a1afa6a9 (diff)
downloadgtk+-c9fad251311abeafa95db9f88e345ac4e3688b5f.tar.gz
gdk: Rename gdk_motion_event_get_history
Scroll events can have history too, so make a getter that works for both. This drops the gdk_scroll_event_get_history getter that was added a few commits earlier, since we now store scroll history in the same way as motion history. Update the docs, and all callers.
Diffstat (limited to 'gtk/gtkgesturestylus.c')
-rw-r--r--gtk/gtkgesturestylus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkgesturestylus.c b/gtk/gtkgesturestylus.c
index da0dbc868f..094a759553 100644
--- a/gtk/gtkgesturestylus.c
+++ b/gtk/gtkgesturestylus.c
@@ -278,8 +278,8 @@ gtk_gesture_stylus_get_axes (GtkGestureStylus *gesture,
**/
gboolean
gtk_gesture_stylus_get_backlog (GtkGestureStylus *gesture,
- GdkTimeCoord **backlog,
- guint *n_elems)
+ GdkTimeCoord **backlog,
+ guint *n_elems)
{
GdkEvent *event;
GArray *backlog_array;
@@ -292,7 +292,7 @@ gtk_gesture_stylus_get_backlog (GtkGestureStylus *gesture,
event = gesture_get_current_event (gesture);
if (event && GDK_IS_EVENT_TYPE (event, GDK_MOTION_NOTIFY))
- history = gdk_motion_event_get_history (event, &n_coords);
+ history = gdk_event_get_history (event, &n_coords);
if (!history)
return FALSE;