diff options
author | Javier Jardon <javier.jardon@codethink.co.uk> | 2011-07-05 15:56:19 +0100 |
---|---|---|
committer | Javier Jardon <javier.jardon@codethink.co.uk> | 2011-07-05 15:56:19 +0100 |
commit | e0806a77e3acf8068c6f6e29199650fbf3dabb19 (patch) | |
tree | 280deeba548de83fcce5c1403df057c084ce368a /src | |
parent | 70ebe79a1986c19f45df3bb57d0b6a84474f1697 (diff) | |
download | ayatana-indicator-power-e0806a77e3acf8068c6f6e29199650fbf3dabb19.tar.gz ayatana-indicator-power-e0806a77e3acf8068c6f6e29199650fbf3dabb19.tar.bz2 ayatana-indicator-power-e0806a77e3acf8068c6f6e29199650fbf3dabb19.zip |
Use the correct string for the menu item icon
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-power.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c index eb2b605..e900393 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -323,6 +323,7 @@ menu_add_device (GtkMenu *menu, GtkWidget *icon; GtkWidget *item; gchar *device_icon = NULL; + gchar **device_icons; gchar *object_path = NULL; gdouble percentage; guint64 time; @@ -347,7 +348,9 @@ menu_add_device (GtkMenu *menu, n_devices++; - icon = gtk_image_new_from_icon_name (device_icon, GTK_ICON_SIZE_MENU); + device_icons = g_strsplit (device_icon, " ", -1); + icon = gtk_image_new_from_icon_name (device_icons[3], GTK_ICON_SIZE_MENU); + g_strfreev (device_icons); device_name = device_kind_to_localised_string (kind); build_device_time_details (device_name, time, state, percentage, &short_details, &details); |