From 7df88064c07d42c4a8abb6b14af1d9907b3934c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 30 Jun 2011 12:11:30 +0100 Subject: Specify what icon we want to show Seems that indicator_image_helper_update() is not smarter enough to handle the string retrieved from the g-p-m interface --- src/indicator-power.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/indicator-power.c b/src/indicator-power.c index 2235828..96222ac 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -169,6 +169,7 @@ get_primary_device_cb (GObject *source_object, GError *error = NULL; const gchar *title = NULL; gchar *details = NULL; + gchar **device_icons; gchar *device_icon = NULL; gchar *object_path = NULL; gdouble percentage; @@ -197,8 +198,10 @@ get_primary_device_cb (GObject *source_object, g_debug ("got data from object %s", object_path); /* set icon */ + device_icons = g_strsplit (device_icon, " ", -1); indicator_image_helper_update (priv->status_image, - device_icon); + device_icons[3]); + g_strfreev (device_icons); gtk_widget_show (GTK_WIDGET (priv->status_image)); /* get the title -- cgit v1.2.3