E notification: Fix notification markup.

Apparently there's a limited markup language that should be supported.

SVN revision: 66868
This commit is contained in:
Tom Hacohen 2012-01-04 13:43:33 +00:00
parent c94eef4714
commit 844eb83a38
1 changed files with 3 additions and 12 deletions

View File

@ -584,16 +584,7 @@ _notification_format_message(Popup_Data *popup)
const char *title = e_notification_summary_get(popup->notif);
const char *b = e_notification_body_get(popup->notif);
edje_object_part_text_set(o, "notification.text.title", title);
/* Hack to allow e to include markup */
if (e_notification_replaces_id_get(popup->notif) == -1)
{
edje_object_part_text_set(o, "notification.textblock.message", b);
}
else
{
char *tmp;
tmp = evas_textblock_text_utf8_to_markup(NULL, b);
edje_object_part_text_set(o, "notification.textblock.message", tmp);
if (tmp) free(tmp);
}
/* FIXME: Filter to only include allowed markup? */
edje_object_part_text_set(o, "notification.textblock.message", b);
}