pidgin: aa338275: Add support for %shortTime% in themed me...

qulogic at pidgin.im qulogic at pidgin.im
Fri Nov 18 14:55:50 EST 2011


----------------------------------------------------------------------
Revision: aa3382759d60971f87d3b77c10e4b669bffa51d7
Parent:   8b2f900953cfdac6875cff0061850e767424470f
Author:   qulogic at pidgin.im
Date:     11/18/11 14:49:08
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/aa3382759d60971f87d3b77c10e4b669bffa51d7

Changelog: 

Add support for %shortTime% in themed messages. This is probably not
localized correctly.

Changes against parent 8b2f900953cfdac6875cff0061850e767424470f

  patched  pidgin/gtkconv.c

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	8d9c32d601c3e9cd9f32ce117714081b6c0e6e7e
+++ pidgin/gtkconv.c	fbfa9d6044ed04cc330b465bb446b2262a9e6198
@@ -6133,6 +6133,9 @@ replace_message_tokens(
 			replace = purple_utf8_strftime(format ? format : "%X", NULL);
 			g_free(format);
 
+		} else if (g_str_has_prefix(cur, "%shortTime%")) {
+			replace = purple_utf8_strftime("%H:%M", NULL);
+
 		} else if (g_str_has_prefix(cur, "%userIconPath%")) {
 			if (flags & PURPLE_MESSAGE_SEND) {
 				if (purple_account_get_bool(purple_conversation_get_account(conv), "use-global-buddyicon", TRUE)) {


More information about the Commits mailing list