[Xfce4-commits] [xfce/xfce4-power-manager] 32/64: Fix fully charged icon

noreply at xfce.org noreply at xfce.org
Mon May 26 06:00:27 CEST 2014


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

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

commit 03b8450d9b0b4d87762b2db411da27e27fa51be6
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon May 5 13:26:54 2014 +0300

    Fix fully charged icon
    
    The 'online' state only works for line_power devices so make the
    fully charged state use the charged icon so it's more accurate.
---
 common/xfpm-power-common.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/xfpm-power-common.c b/common/xfpm-power-common.c
index fff15f6..04caea0 100644
--- a/common/xfpm-power-common.c
+++ b/common/xfpm-power-common.c
@@ -264,7 +264,7 @@ get_device_icon_name (UpClient *upower, UpDevice *device)
 	}
 	else if (state == UP_DEVICE_STATE_FULLY_CHARGED )
 	{
-	    icon_name = g_strdup_printf ("%s%s", icon_prefix, online ? "charged" : "100");
+	    icon_name = g_strdup_printf ("%s%s", icon_prefix, "charged");
 	}
 	else if ( state == UP_DEVICE_STATE_CHARGING || state == UP_DEVICE_STATE_PENDING_CHARGE)
 	{
@@ -276,7 +276,7 @@ get_device_icon_name (UpClient *upower, UpDevice *device)
 	}
 	else if ( state == UP_DEVICE_STATE_EMPTY)
 	{
-	    icon_name = g_strdup_printf ("%s%s", icon_prefix, online ? "000-charging" : "000");
+	    icon_name = g_strdup_printf ("%s%s", icon_prefix, "000");
 	}
     }
     else

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


More information about the Xfce4-commits mailing list