aboutsummaryrefslogtreecommitdiff
path: root/src/app-menu-item.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-18 11:23:29 -0600
committerTed Gould <ted@gould.cx>2010-02-18 11:23:29 -0600
commit5a6010fdb4e2c1528c4033f78d8bc2abf5fe9e63 (patch)
treec0f3881eae20a681d16b5d21d7622aea1daa5694 /src/app-menu-item.c
parent0bae7a38701b3493e2e4053e18ff68b791ba5f01 (diff)
parent256417a46e8798eb32d025081aa205efce8cbebe (diff)
downloadayatana-indicator-messages-5a6010fdb4e2c1528c4033f78d8bc2abf5fe9e63.tar.gz
ayatana-indicator-messages-5a6010fdb4e2c1528c4033f78d8bc2abf5fe9e63.tar.bz2
ayatana-indicator-messages-5a6010fdb4e2c1528c4033f78d8bc2abf5fe9e63.zip
Changing the applications to have icons.
Diffstat (limited to 'src/app-menu-item.c')
-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 2fb24f6..a37daf4 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -307,6 +307,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;