[gnome-control-center/gnome-3-22] common: Handle trackpoint devices in GsdDeviceManagerX11
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-22] common: Handle trackpoint devices in GsdDeviceManagerX11
- Date: Mon, 9 Jan 2017 16:42:34 +0000 (UTC)
commit c7eb3d2f9d01422ac6804fd1f0a136691865c7c0
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Jan 2 18:22:56 2017 +0000
common: Handle trackpoint devices in GsdDeviceManagerX11
With gtk+ >= 3.22 trackpoints are classified separately from mice so
we need to handle them here. Also, remove the default case so that we
get a compilation warning in case this happens again.
In the future we might want to expose this further if we start adding
trackpoint specific UI.
https://bugzilla.gnome.org/show_bug.cgi?id=776660
panels/common/gsd-device-manager-x11.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/common/gsd-device-manager-x11.c b/panels/common/gsd-device-manager-x11.c
index 14f6e72..fa7047e 100644
--- a/panels/common/gsd-device-manager-x11.c
+++ b/panels/common/gsd-device-manager-x11.c
@@ -51,6 +51,7 @@ device_get_device_type (GdkDevice *gdk_device)
switch (source) {
case GDK_SOURCE_MOUSE:
+ case GDK_SOURCE_TRACKPOINT:
return GSD_DEVICE_TYPE_MOUSE;
case GDK_SOURCE_PEN:
case GDK_SOURCE_ERASER:
@@ -62,10 +63,9 @@ device_get_device_type (GdkDevice *gdk_device)
return GSD_DEVICE_TYPE_TOUCHSCREEN;
case GDK_SOURCE_TOUCHPAD:
return GSD_DEVICE_TYPE_TOUCHPAD;
- default:
- g_warning ("Unhandled input source %d\n", source);
}
+ g_warning ("Unhandled input source %d\n", source);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]