aboutsummaryrefslogtreecommitdiff
path: root/src/im-phone-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-phone-menu.c')
-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)