diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-08-21 11:40:47 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-08-21 11:40:47 +0200 |
commit | 7d036b65aac90b646eb7845cfc8e229464f372f0 (patch) | |
tree | 0f35744b42ad90681db927832228d0002f0f41f9 /libmessaging-menu | |
parent | 699c7421e9591326e1629e2fce586e0336623936 (diff) | |
download | ayatana-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.c | 6 |
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); |