summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-07-29 00:03:48 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-07-29 01:27:51 +0200
commitcab1dcb6960d1efb4dee916a1c804c908664c530 (patch)
treee437b652ea6b2286e1b62e85f9e4cf8cca233257 /gtk/gtkrange.c
parent25ea17a6fc0035b5f7e190ed84107c0f8016aa09 (diff)
downloadgtk+-cab1dcb6960d1efb4dee916a1c804c908664c530.tar.gz
gdk: Conflate GDK devices
Make GdkEvents hold a single GdkDevice. This device is closer to the logical device conceptually, although it must be sufficient for device checks (i.e. GdkInputSource), which makes it similar to the physical devices. Make the logical devices have a more accurate GdkInputSource where needed, and conflate the event devices altogether.
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r--gtk/gtkrange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 0277fc8c4a..ef8b1f4f91 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1881,7 +1881,7 @@ gtk_range_click_gesture_pressed (GtkGestureClick *gesture,
state_mask = gdk_event_get_modifier_state (event);
shift_pressed = (state_mask & GDK_SHIFT_MASK) != 0;
- source_device = gdk_event_get_source_device ((GdkEvent *) event);
+ source_device = gdk_event_get_device ((GdkEvent *) event);
source = gdk_device_get_source (source_device);
g_object_get (gtk_widget_get_settings (widget),