aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-03-20 14:28:17 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2014-03-20 14:28:17 +0100
commita56346d7b63f9537e094ffce289aba0f69dbc628 (patch)
treee85f9b2c1e310408f485db0d9a2450978f33b37a /src
parent06a0c3a8cb2d2d6e2c56c62fd1a59b0b0951a633 (diff)
downloadayatana-indicator-messages-a56346d7b63f9537e094ffce289aba0f69dbc628.tar.gz
ayatana-indicator-messages-a56346d7b63f9537e094ffce289aba0f69dbc628.tar.bz2
ayatana-indicator-messages-a56346d7b63f9537e094ffce289aba0f69dbc628.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.
Diffstat (limited to 'src')
-rw-r--r--src/im-desktop-menu.c6
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);