forked from enlightenment/enlightenment
E notification: Fix notification markup.
Apparently there's a limited markup language that should be supported. SVN revision: 66868
This commit is contained in:
parent
c94eef4714
commit
844eb83a38
|
@ -584,16 +584,7 @@ _notification_format_message(Popup_Data *popup)
|
||||||
const char *title = e_notification_summary_get(popup->notif);
|
const char *title = e_notification_summary_get(popup->notif);
|
||||||
const char *b = e_notification_body_get(popup->notif);
|
const char *b = e_notification_body_get(popup->notif);
|
||||||
edje_object_part_text_set(o, "notification.text.title", title);
|
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)
|
/* FIXME: Filter to only include allowed markup? */
|
||||||
{
|
|
||||||
edje_object_part_text_set(o, "notification.textblock.message", b);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue