File xfce4-power-manager-fix-battery-icon-typo.patch of Package xfce4-power-manager
Index: xfce4-power-manager-1.2.0/src/xfpm-battery.c
===================================================================
--- xfce4-power-manager-1.2.0.orig/src/xfpm-battery.c
+++ xfce4-power-manager-1.2.0/src/xfpm-battery.c
@@ -320,16 +320,16 @@ xfpm_battery_refresh_icon (XfpmBattery *
{
if ( !battery->priv->present || battery->priv->state == XFPM_DEVICE_STATE_EMPTY )
{
- g_snprintf (icon_name, 128, "%s-000", battery->priv->icon_prefix);
+ g_snprintf (icon_name, 128, "%s000", battery->priv->icon_prefix);
}
else if ( battery->priv->state == XFPM_DEVICE_STATE_FULLY_CHARGED )
{
- g_snprintf (icon_name, 128, "%s-100", battery->priv->icon_prefix);
+ g_snprintf (icon_name, 128, "%s100", battery->priv->icon_prefix);
}
else if ( battery->priv->state == XFPM_DEVICE_STATE_DISCHARGING )
{
- g_snprintf (icon_name, 128, "%s-%s",
- battery->priv->icon_prefix,
+ g_snprintf (icon_name, 128, "%s%s",
+ battery->priv->icon_prefix,
xfpm_battery_get_icon_index (battery->priv->type, battery->priv->percentage));
}
}