[gnome-settings-daemon] wacom: Add Thinkpad X201 fake device
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Add Thinkpad X201 fake device
- Date: Fri, 25 Nov 2011 17:05:34 +0000 (UTC)
commit 050b06d5c7a5135b386c6aac4e8a1a75e4c78fef
Author: Bastien Nocera <hadess hadess net>
Date: Fri Nov 25 16:35:31 2011 +0000
wacom: Add Thinkpad X201 fake device
plugins/wacom/gsd-wacom-device.c | 29 ++++++++++++++++++++++++++++-
plugins/wacom/gsd-wacom-device.h | 1 +
2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-device.c b/plugins/wacom/gsd-wacom-device.c
index 14682d6..3c008bf 100644
--- a/plugins/wacom/gsd-wacom-device.c
+++ b/plugins/wacom/gsd-wacom-device.c
@@ -626,9 +626,36 @@ gsd_wacom_device_create_fake_bt (void)
"WACOM Pen Tablet cursor",
FALSE,
FALSE,
- "wacom-tablet-cintiq",
+ "wacom-tablet",
0);
devices = g_list_prepend (devices, device);
return devices;
}
+
+GList *
+gsd_wacom_device_create_fake_x201 (void)
+{
+ GsdWacomDevice *device;
+ GList *devices;
+
+ device = gsd_wacom_device_create_fake (WACOM_TYPE_STYLUS,
+ "Serial Wacom Tablet WACf004",
+ "Serial Wacom Tablet WACf004 stylus",
+ FALSE,
+ TRUE,
+ "wacom-tablet-pc",
+ 1);
+ devices = g_list_prepend (NULL, device);
+
+ device = gsd_wacom_device_create_fake (WACOM_TYPE_ERASER,
+ "Serial Wacom Tablet WACf004",
+ "Serial Wacom Tablet WACf004 eraser",
+ FALSE,
+ TRUE,
+ "wacom-tablet-pc",
+ 1);
+ devices = g_list_prepend (devices, device);
+
+ return devices;
+}
diff --git a/plugins/wacom/gsd-wacom-device.h b/plugins/wacom/gsd-wacom-device.h
index 288f17b..d3701a8 100644
--- a/plugins/wacom/gsd-wacom-device.h
+++ b/plugins/wacom/gsd-wacom-device.h
@@ -107,6 +107,7 @@ GsdWacomDevice * gsd_wacom_device_create_fake (GsdWacomDeviceType type,
GList * gsd_wacom_device_create_fake_cintiq (void);
GList * gsd_wacom_device_create_fake_bt (void);
+GList * gsd_wacom_device_create_fake_x201 (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]