aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 21:45:29 -0600
committerTed Gould <ted@gould.cx>2010-02-17 21:45:29 -0600
commit256417a46e8798eb32d025081aa205efce8cbebe (patch)
tree9b1b74e06141f0abf1b3961844d0eecb0333a1db
parent4149cfe250b6434170cc863f49d92eefb4e57138 (diff)
downloadayatana-indicator-messages-256417a46e8798eb32d025081aa205efce8cbebe.tar.gz
ayatana-indicator-messages-256417a46e8798eb32d025081aa205efce8cbebe.tar.bz2
ayatana-indicator-messages-256417a46e8798eb32d025081aa205efce8cbebe.zip
Put the icons into the active items.
-rw-r--r--src/app-menu-item.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 5fc2a9c..b302eee 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -257,6 +257,12 @@ desktop_cb (IndicateListener * listener, IndicateListenerServer * server, gchar
priv->desktop = g_strdup(value);
update_label(self);
+
+ GIcon * icon = g_app_info_get_icon(priv->appinfo);
+ gchar * iconstr = g_icon_to_string(icon);
+ dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_ICON_NAME, iconstr);
+ g_free(iconstr);
+
g_signal_emit(G_OBJECT(self), signals[NAME_CHANGED], 0, app_menu_item_get_name(self), TRUE);
return;