forked from AuroraMiddleware/gtk
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:
parent
17b1e7bae9
commit
446b2e25d3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user