diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-03-21 06:56:56 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-03-21 06:56:56 +0000 |
commit | 51f72502618b06f7f306fac6869f58f500f7c3b0 (patch) | |
tree | e85f9b2c1e310408f485db0d9a2450978f33b37a | |
parent | 06a0c3a8cb2d2d6e2c56c62fd1a59b0b0951a633 (diff) | |
parent | a56346d7b63f9537e094ffce289aba0f69dbc628 (diff) | |
download | ayatana-indicator-messages-51f72502618b06f7f306fac6869f58f500f7c3b0.tar.gz ayatana-indicator-messages-51f72502618b06f7f306fac6869f58f500f7c3b0.tar.bz2 ayatana-indicator-messages-51f72502618b06f7f306fac6869f58f500f7c3b0.zip |
desktop menu: use com.canonical.application menu items for actions
The unity implementation of that menu item indents the label even when there's no icon.
-rw-r--r-- | src/im-desktop-menu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/im-desktop-menu.c b/src/im-desktop-menu.c index 68d8a2d..11e3d41 100644 --- a/src/im-desktop-menu.c +++ b/src/im-desktop-menu.c @@ -79,12 +79,16 @@ im_desktop_menu_app_added (ImApplicationList *applist, if (shortcuts != NULL) for (nicks = indicator_desktop_shortcuts_get_nicks(shortcuts); *nicks; nicks++) { + GMenuItem *item; gchar *label; label = indicator_desktop_shortcuts_nick_get_name (shortcuts, *nicks); - g_menu_append (app_section, label, *nicks); + item = g_menu_item_new (label, *nicks); + g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.application"); + g_menu_append_item (app_section, item); g_free (label); + g_object_unref (item); } g_clear_object(&shortcuts); |