# HG changeset patch # User Elliott Sales de Andrade # Date 1330824843 0 # Node ID dfcad7368179df2900d2290a757fe11cc875f803 # Parent 7cd13ca747fc0682a171145dca2e1563a66a247b Replace the "%status%" variable in themes, though this only supports errors right now. diff -r 7cd13ca747fc -r dfcad7368179 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun Mar 04 01:32:16 2012 +0000 +++ b/pidgin/gtkconv.c Sun Mar 04 01:34:03 2012 +0000 @@ -6250,6 +6250,14 @@ } 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; diff -r 7cd13ca747fc -r dfcad7368179 pidgin/themes/Contents/Resources/Status.html --- a/pidgin/themes/Contents/Resources/Status.html Sun Mar 04 01:32:16 2012 +0000 +++ b/pidgin/themes/Contents/Resources/Status.html Sun Mar 04 01:34:03 2012 +0000 @@ -1,4 +1,4 @@ -
+
%time%
%message%