Mercurial > pidgin.yaz
changeset 32826:3bcc868c6c8e
Add support for %messageDirection% for RTL messages.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 18 Nov 2011 19:53:46 +0000 |
parents | 411e11db1002 |
children | 4a34689eeb33 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Fri Nov 18 19:49:08 2011 +0000 +++ b/pidgin/gtkconv.c Fri Nov 18 19:53:46 2011 +0000 @@ -6165,6 +6165,9 @@ } else if (g_str_has_prefix(cur, "%service%")) { replace = purple_account_get_protocol_name(purple_conversation_get_account(conv)); + } else if (g_str_has_prefix(cur, "%messageDirection%")) { + replace = purple_markup_is_rtl(message) ? "rtl" : "ltr"; + } else { cur++; continue;