pidgin: 36948cfc: Show the current time if the timestamp i...
sadrul at pidgin.im
sadrul at pidgin.im
Sun Jul 12 22:15:55 EDT 2009
-----------------------------------------------------------------
Revision: 36948cfc8a90e3d81db3b233f7af33bf653ae4d3
Ancestor: 37273b6f2212b998066d29177863f4bf938526fc
Author: sadrul at pidgin.im
Date: 2009-07-13T02:17:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/36948cfc8a90e3d81db3b233f7af33bf653ae4d3
Modified files:
finch/gntconv.c
ChangeLog:
Show the current time if the timestamp is zero.
-------------- next part --------------
============================================================
--- finch/gntconv.c e73fe4cec8ad7e37c7b56530966b0ca07277c0f9
+++ finch/gntconv.c 74d481cd430e523bdd7c25c7b6fd7655386ba1a4
@@ -881,9 +881,12 @@ finch_write_common(PurpleConversation *c
gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), "\n", GNT_TEXT_FLAG_NORMAL);
/* Unnecessary to print the timestamp for delayed message */
- if (purple_prefs_get_bool("/finch/conversations/timestamps"))
+ if (purple_prefs_get_bool("/finch/conversations/timestamps")) {
+ if (!mtime)
+ time(&mtime);
gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv),
purple_utf8_strftime("(%H:%M:%S)", localtime(&mtime)), gnt_color_pair(color_timestamp));
+ }
gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), " ", GNT_TEXT_FLAG_NORMAL);
More information about the Commits
mailing list