[gnome-settings-daemon] wacom: Don't set the default tool ourselves



commit 6900954c0e7c619304d2060a1478f09a6a2c90fa
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 14 18:23:13 2011 +0000

    wacom: Don't set the default tool ourselves
    
    This should be the job of the GsdWacomDevice object.

 plugins/wacom/list-wacom.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/plugins/wacom/list-wacom.c b/plugins/wacom/list-wacom.c
index 5c35b4d..d696894 100644
--- a/plugins/wacom/list-wacom.c
+++ b/plugins/wacom/list-wacom.c
@@ -23,7 +23,6 @@
 
 #include <gtk/gtk.h>
 
-#include "gsd-input-helper.h"
 #include "gsd-wacom-device.h"
 
 static char *
@@ -110,7 +109,6 @@ list_actual_devices (void)
 	devices = NULL;
 	for (l = list; l ; l = l->next) {
 		GsdWacomDevice *device;
-		int device_id, tool_id;
 
 		device = gsd_wacom_device_new (l->data);
 		if (gsd_wacom_device_get_device_type (device) == WACOM_TYPE_INVALID) {
@@ -118,13 +116,6 @@ list_actual_devices (void)
 			continue;
 		}
 
-		if (gsd_wacom_device_get_device_type (device) == WACOM_TYPE_STYLUS ||
-		    gsd_wacom_device_get_device_type (device) == WACOM_TYPE_ERASER) {
-			g_object_get (l->data, "device-id", &device_id, NULL);
-			tool_id = xdevice_get_last_tool_id (device_id);
-			gsd_wacom_device_set_current_stylus (device, tool_id);
-		}
-
 		devices = g_list_prepend (devices, device);
 	}
 	g_list_free (list);



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