From 256417a46e8798eb32d025081aa205efce8cbebe Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 17 Feb 2010 21:45:29 -0600 Subject: Put the icons into the active items. --- src/app-menu-item.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3