summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-10-11 08:42:41 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-12-14 00:58:32 +0100
commit59cab3603567b491f81ace1f5503cffa543b30dc (patch)
tree680397599a761e5426bedef0a96b58e96688148d /gtk
parent64decbfd7415f0e634743949ae6e0a52b46452fe (diff)
downloadgtk+-59cab3603567b491f81ace1f5503cffa543b30dc.tar.gz
gdk: Fold GdkEventPrivate fields into event structs
Now all events structs are private, it doesn't make as much sense having GdkEventPrivate wrapping allocating events. This is a first step towards removing it.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 76459f8b42..314e31db25 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3416,7 +3416,7 @@ _gtk_widget_emulate_press (GtkWidget *widget,
press->button.axes = g_memdup (event->motion.axes,
sizeof (gdouble) *
- gdk_device_get_n_axes (event->motion.device));
+ gdk_device_get_n_axes (event->any.device));
if (event->motion.state & GDK_BUTTON3_MASK)
press->button.button = 3;