aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-06-03 13:07:09 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-06-03 13:07:09 +0200
commit806686a1635bcd72c6e509a85ce8af9246ea551c (patch)
tree70dd8095dafbd5e5d765bb1094813e0b4c4f44ae
parent1a21c582c91dfa1df8bcb8e2f822b2ad025c64f5 (diff)
downloadayatana-indicator-messages-806686a1635bcd72c6e509a85ce8af9246ea551c.tar.gz
ayatana-indicator-messages-806686a1635bcd72c6e509a85ce8af9246ea551c.tar.bz2
ayatana-indicator-messages-806686a1635bcd72c6e509a85ce8af9246ea551c.zip
Name actions after the shortcut nick instead of its label
-rw-r--r--src/app-section.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app-section.c b/src/app-section.c
index f23f412..340bbd7 100644
--- a/src/app-section.c
+++ b/src/app-section.c
@@ -243,11 +243,11 @@ app_section_set_app_info (AppSection *self,
name = indicator_desktop_shortcuts_nick_get_name(priv->ids, nicks[i]);
- action = g_simple_action_new (name, NULL);
+ action = g_simple_action_new (nicks[i], NULL);
g_signal_connect(action, "activate", G_CALLBACK (nick_activate_cb), self);
g_simple_action_group_insert (priv->static_shortcuts, G_ACTION (action));
- item = g_menu_item_new (name, name);
+ item = g_menu_item_new (name, nicks[i]);
g_menu_append_item (priv->menu, item);
g_object_unref (item);