aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-08-28 17:20:09 +0000
committerTarmac <Unknown>2013-08-28 17:20:09 +0000
commit0110ed56ec2071d91b6da14e34c76219a0f00bce (patch)
tree64aff596a275d6926d8884b5399afc61cb73d4f5 /src
parentc030416d734a863b3a82ba8b80a883c5f2aa397d (diff)
parentec879e19cd2e24a521ce7fde416807e6da9a26bb (diff)
downloadayatana-indicator-messages-0110ed56ec2071d91b6da14e34c76219a0f00bce.tar.gz
ayatana-indicator-messages-0110ed56ec2071d91b6da14e34c76219a0f00bce.tar.bz2
ayatana-indicator-messages-0110ed56ec2071d91b6da14e34c76219a0f00bce.zip
Don't pass source and message ids into parameters that expect detailed action names.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'src')
-rw-r--r--src/im-phone-menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/im-phone-menu.c b/src/im-phone-menu.c
index 0ea6f76..a9c5977 100644
--- a/src/im-phone-menu.c
+++ b/src/im-phone-menu.c
@@ -170,7 +170,8 @@ im_phone_menu_add_message (ImPhoneMenu *menu,
action_name = g_strconcat (app_id, ".msg.", id, NULL);
- item = g_menu_item_new (title, action_name);
+ item = g_menu_item_new (title, NULL);
+ g_menu_item_set_action_and_target_value (item, action_name, NULL);
g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.messages.messageitem");
g_menu_item_set_attribute (item, "x-canonical-message-id", "s", id);
@@ -232,7 +233,8 @@ im_phone_menu_add_source (ImPhoneMenu *menu,
action_name = g_strconcat (app_id, ".src.", id, NULL);
- item = g_menu_item_new (label, action_name);
+ item = g_menu_item_new (label, NULL);
+ g_menu_item_set_action_and_target_value (item, action_name, NULL);
g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.messages.sourceitem");
if (iconstr)