Mercurial > pidgin
changeset 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 | 1b92b9b51e2a |
children | a9eb6dbbba1b b0ae684202a8 |
files | finch/gntconv.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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);