aboutsummaryrefslogtreecommitdiff
path: root/libmessaging-menu
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-08-21 11:40:47 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-08-21 11:40:47 +0200
commit7d036b65aac90b646eb7845cfc8e229464f372f0 (patch)
tree0f35744b42ad90681db927832228d0002f0f41f9 /libmessaging-menu
parent699c7421e9591326e1629e2fce586e0336623936 (diff)
downloadayatana-indicator-messages-7d036b65aac90b646eb7845cfc8e229464f372f0.tar.gz
ayatana-indicator-messages-7d036b65aac90b646eb7845cfc8e229464f372f0.tar.bz2
ayatana-indicator-messages-7d036b65aac90b646eb7845cfc8e229464f372f0.zip
Show icons in application and source menu items
Everthing goes through GIcon now, using g_icon_{to,new_for}_string to set a string attribute on the menu item. The attribute is prefixed x-canonical- for now.
Diffstat (limited to 'libmessaging-menu')
-rw-r--r--libmessaging-menu/messaging-menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmessaging-menu/messaging-menu.c b/libmessaging-menu/messaging-menu.c
index ea33cd6..336e89c 100644
--- a/libmessaging-menu/messaging-menu.c
+++ b/libmessaging-menu/messaging-menu.c
@@ -442,9 +442,9 @@ messaging_menu_app_insert_source_action (MessagingMenuApp *app,
g_menu_item_set_attribute (menuitem, "x-canonical-type", "s", "ImSourceMenuItem");
if (icon)
{
- gchar *icon_name = g_icon_to_string (icon);
- g_menu_item_set_attribute (menuitem, "indicator-icon-name", icon_name);
- g_free (icon_name);
+ gchar *iconstr = g_icon_to_string (icon);
+ g_menu_item_set_attribute (menuitem, "x-canonical-icon", "s", iconstr);
+ g_free (iconstr);
}
g_menu_insert_item (app->menu, position, menuitem);
g_object_unref (menuitem);