[gnome-settings-daemon] power: Never show a mouse as the status icon



commit a73c82ace8883123c334a92354cb8440e5145fe4
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 7 20:52:57 2013 +0200

    power: Never show a mouse as the status icon
    
    Because we end up showing the critical mouse as the status icon,
    and as the label for the battery as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709572

 plugins/power/gsd-power-manager.c |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index cde947e..02af632 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -570,33 +570,21 @@ engine_get_icon (GsdPowerManager *manager)
         GIcon *icon = NULL;
 
 
-        /* we try CRITICAL: BATTERY, UPS, MOUSE, KEYBOARD */
+        /* we try CRITICAL: BATTERY, UPS */
         icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_BATTERY, WARNING_CRITICAL, FALSE);
         if (icon != NULL)
                 return icon;
         icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_UPS, WARNING_CRITICAL, FALSE);
         if (icon != NULL)
                 return icon;
-        icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_MOUSE, WARNING_CRITICAL, FALSE);
-        if (icon != NULL)
-                return icon;
-        icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_KEYBOARD, WARNING_CRITICAL, FALSE);
-        if (icon != NULL)
-                return icon;
 
-        /* we try CRITICAL: BATTERY, UPS, MOUSE, KEYBOARD */
+        /* we try CRITICAL: BATTERY, UPS */
         icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_BATTERY, WARNING_LOW, FALSE);
         if (icon != NULL)
                 return icon;
         icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_UPS, WARNING_LOW, FALSE);
         if (icon != NULL)
                 return icon;
-        icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_MOUSE, WARNING_LOW, FALSE);
-        if (icon != NULL)
-                return icon;
-        icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_KEYBOARD, WARNING_LOW, FALSE);
-        if (icon != NULL)
-                return icon;
 
         /* we try (DIS)CHARGING: BATTERY, UPS */
         icon = engine_get_icon_priv (manager, UP_DEVICE_KIND_BATTERY, WARNING_NONE, TRUE);


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