diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-12-10 13:42:29 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-12-10 13:42:29 +0100 |
commit | e1988a3d3857b4a3c51e9e4b5132e91c188ec28c (patch) | |
tree | f4a0da489efc91f2dfa18814bf4cc38174a8a72a /src | |
parent | 34824346c3f640464ee4ccd5c168ff8add2377c8 (diff) | |
download | ayatana-indicator-messages-e1988a3d3857b4a3c51e9e4b5132e91c188ec28c.tar.gz ayatana-indicator-messages-e1988a3d3857b4a3c51e9e4b5132e91c188ec28c.tar.bz2 ayatana-indicator-messages-e1988a3d3857b4a3c51e9e4b5132e91c188ec28c.zip |
Remove the snapdecision widget type
Always use messageitem instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/im-phone-menu.c | 12 |
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); |