mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
GdkDevice: Remove duplicate private function
_gdk_device_get_axis_use() dates back to pre-sealing, when the xi2 work began, this remaining can be gone with a public gdk_device_get_axis_use() function already in place.
This commit is contained in:
parent
955f01cdf7
commit
db74a6e816
@ -1400,16 +1400,6 @@ find_axis_info (GArray *array,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GdkAxisUse
|
||||
_gdk_device_get_axis_use (GdkDevice *device,
|
||||
guint index_)
|
||||
{
|
||||
GdkAxisInfo info;
|
||||
|
||||
info = g_array_index (device->axes, GdkAxisInfo, index_);
|
||||
return info.use;
|
||||
}
|
||||
|
||||
gboolean
|
||||
_gdk_device_translate_window_coord (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
|
@ -127,9 +127,6 @@ guint _gdk_device_add_axis (GdkDevice *device,
|
||||
void _gdk_device_set_keys (GdkDevice *device,
|
||||
guint num_keys);
|
||||
|
||||
GdkAxisUse _gdk_device_get_axis_use (GdkDevice *device,
|
||||
guint index);
|
||||
|
||||
gboolean _gdk_device_translate_window_coord (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
guint index,
|
||||
|
@ -326,7 +326,7 @@ _gdk_device_wintab_translate_axes (GdkDeviceWintab *device_wintab,
|
||||
{
|
||||
GdkAxisUse use;
|
||||
|
||||
use = _gdk_device_get_axis_use (device, i);
|
||||
use = gdk_device_get_axis_use (device, i);
|
||||
|
||||
switch (use)
|
||||
{
|
||||
|
@ -613,7 +613,7 @@ _gdk_x11_device_xi_translate_axes (GdkDevice *device,
|
||||
{
|
||||
GdkAxisUse use;
|
||||
|
||||
use = _gdk_device_get_axis_use (device, i);
|
||||
use = gdk_device_get_axis_use (device, i);
|
||||
|
||||
switch (use)
|
||||
{
|
||||
|
@ -205,7 +205,7 @@ gdk_x11_device_xi2_get_state (GdkDevice *device,
|
||||
continue;
|
||||
|
||||
value = ((XIValuatorClassInfo *) class_info)->value;
|
||||
use = _gdk_device_get_axis_use (device, j);
|
||||
use = gdk_device_get_axis_use (device, j);
|
||||
|
||||
switch (use)
|
||||
{
|
||||
|
@ -823,7 +823,7 @@ translate_axes (GdkDevice *device,
|
||||
if (!XIMaskIsSet (valuators->mask, i))
|
||||
continue;
|
||||
|
||||
use = _gdk_device_get_axis_use (device, i);
|
||||
use = gdk_device_get_axis_use (device, i);
|
||||
val = *vals++;
|
||||
|
||||
switch (use)
|
||||
|
Loading…
Reference in New Issue
Block a user