[gnome-settings-daemon] power: Don't warn when Kdb backlight D-Bus is called



commit 02d4429de889f0553278515d16b8898bd4054884
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 25 09:59:08 2014 +0200

    power: Don't warn when Kdb backlight D-Bus is called
    
    And there's no keyboard backlight.

 plugins/power/gsd-power-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 5ce8451..4917d01 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -1021,6 +1021,8 @@ upower_kbd_set_brightness (GsdPowerManager *manager, guint value, GError **error
         /* same as before */
         if (manager->priv->kbd_brightness_now == value)
                 return TRUE;
+        if (manager->priv->upower_kdb_proxy == NULL)
+                return TRUE;
 
         /* update h/w value */
         retval = g_dbus_proxy_call_sync (manager->priv->upower_kdb_proxy,


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