aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-20 14:56:09 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-03-20 14:56:09 -0500
commit6177dacd1c6eeb61912c1c7db245bc58ae81bcee (patch)
tree604484abc6299a3023e5e22fcf65310c0ab79776
parentd44451f344b4f3dfe3a1cd07c0ff52c7193b93b8 (diff)
parente5fe465d054d557eb0e06233e0551ce9cdacc7ba (diff)
downloadayatana-indicator-messages-6177dacd1c6eeb61912c1c7db245bc58ae81bcee.tar.gz
ayatana-indicator-messages-6177dacd1c6eeb61912c1c7db245bc58ae81bcee.tar.bz2
ayatana-indicator-messages-6177dacd1c6eeb61912c1c7db245bc58ae81bcee.zip
merge lp:~ken-vandine/indicator-messages/decode_icons to fix indicator-messages' support of displaying icons via set_property_icon()
-rw-r--r--src/im-menu-item.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c
index f07fff9..7466d3e 100644
--- a/src/im-menu-item.c
+++ b/src/im-menu-item.c
@@ -175,7 +175,11 @@ im_menu_item_finalize (GObject *object)
static void
icon_cb (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, const gchar * propertydata, gpointer data)
{
- dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(data), INDICATOR_MENUITEM_PROP_ICON, propertydata);
+ gsize len;
+ guchar *icon;
+ icon = g_base64_decode (propertydata, &len);
+ dbusmenu_menuitem_property_set_byte_array(DBUSMENU_MENUITEM(data), INDICATOR_MENUITEM_PROP_ICON, icon, len);
+ g_free (icon);
return;
}