[gnome-control-center] common: Handle trackpoint devices in GsdDeviceManagerX11
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] common: Handle trackpoint devices in GsdDeviceManagerX11
- Date: Mon, 9 Jan 2017 16:42:39 +0000 (UTC)
commit 1e7631d8a4a6927b388de343cdecce50ca8ba732
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 9f9721b..20eafc1 100644
--- a/panels/common/gsd-device-manager-x11.c
+++ b/panels/common/gsd-device-manager-x11.c
@@ -55,6 +55,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:
@@ -70,10 +71,9 @@ device_get_device_type (GdkDevice *gdk_device)
return GSD_DEVICE_TYPE_TOUCHPAD;
case GDK_SOURCE_TABLET_PAD:
return GSD_DEVICE_TYPE_PAD;
- 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]