[gnome-control-center] wacom: Add Wacom BT fake device



commit b583f5c07f5ddb82e37c0951350b61b7ae7ceaf1
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Nov 25 16:30:30 2011 +0000

    wacom: Add Wacom BT fake device

 panels/wacom/gsd-wacom-device.c |   45 +++++++++++++++++++++++++++++++++++++++
 panels/wacom/gsd-wacom-device.h |    1 +
 2 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/gsd-wacom-device.c b/panels/wacom/gsd-wacom-device.c
index 34d6b5c..eddea38 100644
--- a/panels/wacom/gsd-wacom-device.c
+++ b/panels/wacom/gsd-wacom-device.c
@@ -582,7 +582,52 @@ gsd_wacom_device_create_fake_cintiq (void)
 					       TRUE,
 					       TRUE,
 					       "wacom-tablet-cintiq",
+					       0);
+	devices = g_list_prepend (devices, device);
+
+	return devices;
+}
+
+GList *
+gsd_wacom_device_create_fake_bt (void)
+{
+	GsdWacomDevice *device;
+	GList *devices;
+
+	device = gsd_wacom_device_create_fake (WACOM_TYPE_STYLUS,
+					       "WACOM Pen Tablet",
+					       "WACOM Pen Tablet stylus",
+					       FALSE,
+					       FALSE,
+					       "wacom-tablet",
 					       1);
+	devices = g_list_prepend (NULL, device);
+
+	device = gsd_wacom_device_create_fake (WACOM_TYPE_ERASER,
+					       "WACOM Pen Tablet",
+					       "WACOM Pen Tablet eraser",
+					       FALSE,
+					       FALSE,
+					       "wacom-tablet",
+					       1);
+	devices = g_list_prepend (devices, device);
+
+	device = gsd_wacom_device_create_fake (WACOM_TYPE_PAD,
+					       "WACOM Pen Tablet",
+					       "WACOM Pen Tablet pad",
+					       FALSE,
+					       FALSE,
+					       "wacom-tablet",
+					       0);
+	devices = g_list_prepend (devices, device);
+
+	device = gsd_wacom_device_create_fake (WACOM_TYPE_CURSOR,
+					       "WACOM Pen Tablet",
+					       "WACOM Pen Tablet cursor",
+					       FALSE,
+					       FALSE,
+					       "wacom-tablet-cintiq",
+					       0);
 	devices = g_list_prepend (devices, device);
 
 	return devices;
diff --git a/panels/wacom/gsd-wacom-device.h b/panels/wacom/gsd-wacom-device.h
index 59ce70e..288f17b 100644
--- a/panels/wacom/gsd-wacom-device.h
+++ b/panels/wacom/gsd-wacom-device.h
@@ -106,6 +106,7 @@ GsdWacomDevice * gsd_wacom_device_create_fake (GsdWacomDeviceType  type,
 					       guint               num_styli);
 
 GList * gsd_wacom_device_create_fake_cintiq   (void);
+GList * gsd_wacom_device_create_fake_bt       (void);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]