[gnome-settings-daemon] wacom: Update pad (O)LEDS when rotation gsetting changes



commit 535ab175832d5ec2171a748f017f4ab3f37970ad
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 19 17:24:46 2013 +0100

    wacom: Update pad (O)LEDS when rotation gsetting changes
    
    This is so labels are updated accordingly as soon as the setting
    is changed.

 plugins/wacom/gsd-wacom-manager.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 5490646..ab777b7 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -916,8 +916,10 @@ wacom_settings_changed (GSettings      *settings,
        type = gsd_wacom_device_get_device_type (device);
 
        if (g_str_equal (key, KEY_ROTATION)) {
-               if (type != WACOM_TYPE_PAD)
-                       set_rotation (device, g_settings_get_enum (settings, key));
+               if (type != WACOM_TYPE_PAD)
+                       set_rotation (device, g_settings_get_enum (settings, key));
+               else
+                       update_pad_leds (device);
        } else if (g_str_equal (key, KEY_TOUCH)) {
                if (type == WACOM_TYPE_TOUCH)
                        set_touch (device, g_settings_get_boolean (settings, key));


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