[gnome-settings-daemon] wacom: Print "styli" for eraser tool as well



commit b144ac5c40a5fdf6207ab95b0d863dc1eaa0bdf0
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Nov 25 15:58:51 2011 +0000

    wacom: Print "styli" for eraser tool as well

 plugins/wacom/list-wacom.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/list-wacom.c b/plugins/wacom/list-wacom.c
index d707b7f..083ceda 100644
--- a/plugins/wacom/list-wacom.c
+++ b/plugins/wacom/list-wacom.c
@@ -52,6 +52,7 @@ list_devices (GList *devices)
 
 	for (l = devices; l ; l = l->next) {
 		GsdWacomDevice *device;
+		GsdWacomDeviceType type;
 		char *loc;
 
 		device = l->data;
@@ -66,7 +67,9 @@ list_devices (GList *devices)
 		g_message ("\tGeneric settings: %s", loc);
 		g_free (loc);
 
-		if (gsd_wacom_device_get_device_type (device) == WACOM_TYPE_STYLUS) {
+		type = gsd_wacom_device_get_device_type (device);
+		if (type == WACOM_TYPE_STYLUS ||
+		    type == WACOM_TYPE_ERASER) {
 			GList *styli, *j;
 
 			styli = gsd_wacom_device_list_styli (device);



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