/pidgin/main: 551fe73e2026: Substitute %variant% in conversation...
Elliott Sales de Andrade
qulogic at pidgin.im
Thu Aug 16 02:29:04 EDT 2012
Changeset: 551fe73e202602780077b37e9ffc6edcc1be5d84
Author: Elliott Sales de Andrade <qulogic at pidgin.im>
Date: 2012-08-15 22:53 -0400
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/551fe73e2026
Description:
Substitute %variant% in conversation themes.
diffstat:
pidgin/gtkconv.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -6321,6 +6321,11 @@ replace_message_tokens(
replace = freeval = g_string_free(classes, FALSE);
+ } else if (g_str_has_prefix(cur, "%variant%")) {
+ replace = pidgin_conversation_theme_get_variant(PIDGIN_CONVERSATION(conv)->theme);
+ replace = freeval = g_strdup(replace);
+ purple_util_chrreplace(freeval, ' ', '_');
+
} else {
cur++;
continue;
More information about the Commits
mailing list