comparison pidgin/gtkconv.c @ 32734:dfcad7368179

Replace the "%status%" variable in themes, though this only supports errors right now.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 04 Mar 2012 01:34:03 +0000
parents 97bf6c9ef9ab
children 01741f87cc1e
comparison
equal deleted inserted replaced
32733:7cd13ca747fc 32734:dfcad7368179
6248 replace = purple_account_get_protocol_name(purple_conversation_get_account(conv)); 6248 replace = purple_account_get_protocol_name(purple_conversation_get_account(conv));
6249 6249
6250 } else if (g_str_has_prefix(cur, "%messageDirection%")) { 6250 } else if (g_str_has_prefix(cur, "%messageDirection%")) {
6251 replace = purple_markup_is_rtl(message) ? "rtl" : "ltr"; 6251 replace = purple_markup_is_rtl(message) ? "rtl" : "ltr";
6252 6252
6253 } else if (g_str_has_prefix(cur, "%status%")) {
6254 GString *classes = g_string_new(NULL);
6255
6256 if (flags & PURPLE_MESSAGE_ERROR)
6257 g_string_append(classes, "error ");
6258
6259 replace = freeval = g_string_free(classes, FALSE);
6260
6253 } else { 6261 } else {
6254 cur++; 6262 cur++;
6255 continue; 6263 continue;
6256 } 6264 }
6257 6265