pidgin: 6ec2768e: Replace the "%status%" variable in theme...
qulogic at pidgin.im
qulogic at pidgin.im
Sat Mar 3 22:55:53 EST 2012
----------------------------------------------------------------------
Revision: 6ec2768e7375bcd6e223f315be9a104414adcbef
Parent: fe75e37dc741b6d8fe0638f7e673858552a76caf
Author: qulogic at pidgin.im
Date: 03/03/12 20:34:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6ec2768e7375bcd6e223f315be9a104414adcbef
Changelog:
Replace the "%status%" variable in themes, though this only supports errors
right now.
Changes against parent fe75e37dc741b6d8fe0638f7e673858552a76caf
patched pidgin/gtkconv.c
patched pidgin/themes/Contents/Resources/Status.html
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c c06b10713ba16d89d6a01a343df73aec59c64c44
+++ pidgin/gtkconv.c 58f38e92fbb0ed53aba3d5512c4dd1747b51b348
@@ -6250,6 +6250,14 @@ replace_message_tokens(
} else if (g_str_has_prefix(cur, "%messageDirection%")) {
replace = purple_markup_is_rtl(message) ? "rtl" : "ltr";
+ } else if (g_str_has_prefix(cur, "%status%")) {
+ GString *classes = g_string_new(NULL);
+
+ if (flags & PURPLE_MESSAGE_ERROR)
+ g_string_append(classes, "error ");
+
+ replace = freeval = g_string_free(classes, FALSE);
+
} else {
cur++;
continue;
============================================================
--- pidgin/themes/Contents/Resources/Status.html 6f7736a1ab0e37f5527d026f32fcf9d9f8b15663
+++ pidgin/themes/Contents/Resources/Status.html 94ea72aa5d4263991a424940285eb7187f66ab2e
@@ -1,4 +1,4 @@
-<div class="x-status_container %messageClasses% %messageDirection%">
+<div class="x-status_container %messageClasses% %messageDirection% %status%">
<abbr class="x-time" title="%time{yyyy-MM-ddTHH:mm:ssZZ}%">%time%</abbr>
<div class="x-message">%message%</div>
</div>
More information about the Commits
mailing list