[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Never try to display the -missing icons

noreply at xfce.org noreply at xfce.org
Thu Aug 21 15:48:48 CEST 2014


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit a0e678f9026c85a14258aa958e5a3f88dcc517ac
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Aug 21 15:48:44 2014 +0200

    Never try to display the -missing icons
    
    The old code didn't check all UP_DEVICE states, e.g. UNKNOWN was
    missing, resulting in no icon being shown.
---
 common/xfpm-power-common.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/common/xfpm-power-common.c b/common/xfpm-power-common.c
index 8c3034f..7130497 100644
--- a/common/xfpm-power-common.c
+++ b/common/xfpm-power-common.c
@@ -296,18 +296,14 @@ get_device_icon_name (UpClient *upower, UpDevice *device)
     }
     else
     {
-
-	if ( state == UP_DEVICE_STATE_EMPTY || state == UP_DEVICE_STATE_FULLY_CHARGED ||
-             state == UP_DEVICE_STATE_DISCHARGING || state == UP_DEVICE_STATE_CHARGING )
-            icon_name = icon_prefix;
-	else if (is_display_device (upower, device))
+        if (is_display_device (upower, device))
 	{
 	    /* Desktop system with no batteries */
 	    icon_name = g_strdup_printf ("%s", XFPM_AC_ADAPTER_ICON);
 	}
 	else
 	{
-	    icon_name = g_strdup_printf ("%smissing", icon_prefix);
+	    icon_name = icon_prefix;
 	}
     }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list