[gnome-settings-daemon] wacom: Reset the LEDs on startup



commit adbacf26d741d75b4a0a1001430ca5a52ec9126e
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 27 17:27:19 2012 +0100

    wacom: Reset the LEDs on startup
    
    Even if set_led() isn't implemented yet.

 plugins/wacom/gsd-wacom-manager.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 72badd2..4c365ef 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -487,7 +487,10 @@ reset_pad_buttons (GsdWacomDevice *device)
 
 	XCloseDevice (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), xdev);
 
-	/* FIXME, set the LED(s) for the mode(s) too */
+	/* Reset all the LEDs */
+	/* FIXME, get the number of modes somewhere else */
+	for (i = 0; i < 4; i++)
+		set_led (device, i, 0);
 }
 
 static void



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