[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Fix for panel icon not always updating

noreply at xfce.org noreply at xfce.org
Sun Sep 21 16:55:32 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 4e8f9cec06748e259ef02c2f2816c90d018b608b
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Sep 21 17:52:31 2014 +0300

    Fix for panel icon not always updating
    
    When running some versions of UPower, the code path had a minor
    logic error causing it to never return the "display device". This
    patch fixes that check.
---
 panel-plugins/power-manager-plugin/power-manager-button.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugins/power-manager-plugin/power-manager-button.c b/panel-plugins/power-manager-plugin/power-manager-button.c
index 95bc687..e02a780 100644
--- a/panel-plugins/power-manager-plugin/power-manager-button.c
+++ b/panel-plugins/power-manager-plugin/power-manager-button.c
@@ -154,7 +154,7 @@ get_display_device (PowerManagerButton *button)
         guint type = 0;
         gdouble percentage;
 
-        if (!battery_device->device || !UP_IS_DEVICE(battery_device))
+        if (!battery_device->device || !UP_IS_DEVICE(battery_device->device))
         {
             continue;
         }

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


More information about the Xfce4-commits mailing list