aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog9
-rw-r--r--src/im-desktop-menu.c6
2 files changed, 14 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 37fc2f8..25725e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+indicator-messages (13.10.1+14.04.20140321-0ubuntu1) trusty; urgency=low
+
+ [ Lars Uebernickel ]
+ * 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.
+
+ -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 21 Mar 2014 06:57:05 +0000
+
indicator-messages (13.10.1+14.04.20140207-0ubuntu1) trusty; urgency=low
[ Ted Gould ]
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);