aboutsummaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-10-03 21:26:45 +0200
committerSebastien Bacher <seb128@ubuntu.com>2012-10-03 21:26:45 +0200
commitc30284384fe3a08bfa1eb8afdddf4ce03784d330 (patch)
treeb0bd0d1ac1b6302332f6057042a3d78c21d3978b /src/device.c
parent938cb5db1032167f0ffdf777afd617adba0e5e9e (diff)
parent0fa9b264b7d79f9bb303b9383379635bb293cf3d (diff)
downloadayatana-indicator-power-c30284384fe3a08bfa1eb8afdddf4ce03784d330.tar.gz
ayatana-indicator-power-c30284384fe3a08bfa1eb8afdddf4ce03784d330.tar.bz2
ayatana-indicator-power-c30284384fe3a08bfa1eb8afdddf4ce03784d330.zip
* New upstream release.
- Show a more accurate view of discharging batteries (LP: #1054146) - Fix a GIcon memory leak - In device.c, include gi18n-lib.h instead of gi18n.h
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 078c7a4..898e18f 100644
--- a/src/device.c
+++ b/src/device.c
@@ -390,8 +390,9 @@ indicator_power_device_get_icon_names (const IndicatorPowerDevice * device)
suffix_str = get_device_icon_suffix (percentage);
index_str = get_device_icon_index (percentage);
- g_ptr_array_add (names, g_strdup_printf ("battery-%s-symbolic", suffix_str));
+ g_ptr_array_add (names, g_strdup_printf ("%s-%s", kind_str, index_str));
g_ptr_array_add (names, g_strdup_printf ("gpm-%s-%s", kind_str, index_str));
+ g_ptr_array_add (names, g_strdup_printf ("battery-%s-symbolic", suffix_str));
g_ptr_array_add (names, g_strdup_printf ("battery-%s", suffix_str));
break;