Mercurial > pidgin
diff finch/gntconv.c @ 27522:37741237d146
Show the current time if the timestamp is zero.
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Mon, 13 Jul 2009 02:17:42 +0000 |
| parents | 4fc04d98e1e8 |
| children | f7c5bb2f6623 |
line wrap: on
line diff
--- a/finch/gntconv.c Sun Jul 12 22:55:24 2009 +0000 +++ b/finch/gntconv.c Mon Jul 13 02:17:42 2009 +0000 @@ -881,9 +881,12 @@ 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);
