pidgin: ff129944: Add support for %messageDirection% for R...
qulogic at pidgin.im
qulogic at pidgin.im
Fri Nov 18 14:55:51 EST 2011
----------------------------------------------------------------------
Revision: ff129944fbd95d5379c082e3d5e927791d50e398
Parent: aa3382759d60971f87d3b77c10e4b669bffa51d7
Author: qulogic at pidgin.im
Date: 11/18/11 14:53:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ff129944fbd95d5379c082e3d5e927791d50e398
Changelog:
Add support for %messageDirection% for RTL messages.
Changes against parent aa3382759d60971f87d3b77c10e4b669bffa51d7
patched pidgin/gtkconv.c
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c fbfa9d6044ed04cc330b465bb446b2262a9e6198
+++ pidgin/gtkconv.c 465691e380ea015c4c6a78cfb96c735fa7f79846
@@ -6165,6 +6165,9 @@ replace_message_tokens(
} 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;
More information about the Commits
mailing list