aboutsummaryrefslogtreecommitdiff
path: root/src/im-phone-menu.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-12-04 16:56:15 +0000
committerTarmac <Unknown>2012-12-04 16:56:15 +0000
commitb47db34e391990abaa2988700e2a83ca179e32c3 (patch)
tree18312efcf0a1d56c9b94c487052b0fd2260ae082 /src/im-phone-menu.c
parentdfdac976160841e43f199afeb252276564726144 (diff)
parentaf3d39b6cc447fad30e97ecdc715e0496e971d85 (diff)
downloadayatana-indicator-messages-b47db34e391990abaa2988700e2a83ca179e32c3.tar.gz
ayatana-indicator-messages-b47db34e391990abaa2988700e2a83ca179e32c3.tar.bz2
ayatana-indicator-messages-b47db34e391990abaa2988700e2a83ca179e32c3.zip
Export symbolic application icons on messages
This is implemented by appending '-symbolic' to the first icon name. The old icon name is kept as a fallback in case there's no symbolic icon installed. This doesn't work yet for applications that specify their icon as a filename. Approved by Renato Araujo Oliveira Filho, PS Jenkins bot.
Diffstat (limited to 'src/im-phone-menu.c')
-rw-r--r--src/im-phone-menu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/im-phone-menu.c b/src/im-phone-menu.c
index ed28023..51467ba 100644
--- a/src/im-phone-menu.c
+++ b/src/im-phone-menu.c
@@ -146,6 +146,7 @@ void
im_phone_menu_add_message (ImPhoneMenu *menu,
const gchar *app_id,
const gchar *app_icon,
+ const gchar *symbolic_app_icon,
const gchar *id,
const gchar *iconstr,
const gchar *title,
@@ -183,6 +184,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 (symbolic_app_icon)
+ g_menu_item_set_attribute (item, "x-canonical-app-icon-symbolic", "s", symbolic_app_icon);
+
g_menu_prepend_item (menu->message_section, item);
g_free (action_name);