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.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/im-phone-menu.c b/src/im-phone-menu.c
index ed28023..83363d1 100644
--- a/src/im-phone-menu.c
+++ b/src/im-phone-menu.c
@@ -164,14 +164,7 @@ im_phone_menu_add_message (ImPhoneMenu *menu,
item = g_menu_item_new (title, action_name);
- if (g_variant_n_children (actions))
- {
- g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.messages.snapdecision");
- g_menu_item_set_attribute (item, "x-canonical-message-actions", "v", actions);
- }
- else
- g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.messages.messageitem");
-
+ 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);
g_menu_item_set_attribute (item, "x-canonical-subtitle", "s", subtitle);
g_menu_item_set_attribute (item, "x-canonical-text", "s", body);
@@ -183,6 +176,9 @@ im_phone_menu_add_message (ImPhoneMenu *menu,
if (app_icon)
g_menu_item_set_attribute (item, "x-canonical-app-icon", "s", app_icon);
+ if (actions)
+ g_menu_item_set_attribute (item, "x-canonical-message-actions", "v", actions);
+
g_menu_prepend_item (menu->message_section, item);
g_free (action_name);