1
Origin: commit:643962eb2d46d48042db0ab278c46813da8b6e9b
2
From: Ali Abdallah <aliov@xfce.org>
3
Subject: Fix Broken empty battery icon..
6
Index: xfce4-power-manager/src/xfpm-battery.c
7
===================================================================
8
--- xfce4-power-manager/src/xfpm-battery.c 2012-02-25 16:32:49.000000000 +0100
9
+++ xfce4-power-manager/src/xfpm-battery.c 2012-02-25 16:35:54.000000000 +0100
11
battery->priv->icon_prefix,
12
xfpm_battery_get_icon_index (battery->priv->type, battery->priv->percentage));
14
+ else if ( battery->priv->state == XFPM_DEVICE_STATE_EMPTY)
16
+ g_snprintf (icon_name, 128, "%s%s", battery->priv->icon_prefix, battery->priv->ac_online ? "000-charging" : "000");
21
- if ( !battery->priv->present )
22
+ if ( !battery->priv->present || battery->priv->state == XFPM_DEVICE_STATE_EMPTY )
24
g_snprintf (icon_name, 128, "%s000", battery->priv->icon_prefix);