Avoid a g_object_get path

We can use gdk_device_get_n_axes instead and will get the same result.
This commit is contained in:
Timm Bäder 2018-07-14 11:26:00 +02:00
parent 17b1e7bae9
commit 446b2e25d3

View File

@ -1104,8 +1104,7 @@ translate_axes (GdkDevice *device,
gdouble *axes;
gdouble *vals;
g_object_get (device, "n-axes", &n_axes, NULL);
n_axes = gdk_device_get_n_axes (device);
axes = g_new0 (gdouble, n_axes);
vals = valuators->values;