Mercurial > pidgin.yaz
comparison console/gntconv.c @ 14234:04bdbbefbd1d
[gaim-migrate @ 16916]
Mark the messages from gnthistory as delayed, and don't print the timestamps
for delayed messages (I think it makes sense).
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 20 Aug 2006 19:37:33 +0000 |
parents | 8c13a650cef5 |
children | e7de1f6d9f35 |
comparison
equal
deleted
inserted
replaced
14233:4832623a6552 | 14234:04bdbbefbd1d |
---|---|
238 | 238 |
239 pos = gnt_text_view_get_lines_below(GNT_TEXT_VIEW(ggconv->tv)); | 239 pos = gnt_text_view_get_lines_below(GNT_TEXT_VIEW(ggconv->tv)); |
240 | 240 |
241 gnt_text_view_next_line(GNT_TEXT_VIEW(ggconv->tv)); | 241 gnt_text_view_next_line(GNT_TEXT_VIEW(ggconv->tv)); |
242 | 242 |
243 if (gaim_prefs_get_bool("/gaim/gnt/conversations/timestamps")) | 243 /* Unnecessary to print the timestamp for delayed message */ |
244 if (!(flags & GAIM_MESSAGE_DELAYED) && | |
245 gaim_prefs_get_bool("/gaim/gnt/conversations/timestamps")) | |
244 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), | 246 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), |
245 gaim_utf8_strftime("(%H:%M:%S) ", localtime(&mtime)), GNT_TEXT_FLAG_DIM); | 247 gaim_utf8_strftime("(%H:%M:%S) ", localtime(&mtime)), GNT_TEXT_FLAG_DIM); |
246 if (who && *who && (flags & (GAIM_MESSAGE_SEND | GAIM_MESSAGE_RECV))) | 248 if (who && *who && (flags & (GAIM_MESSAGE_SEND | GAIM_MESSAGE_RECV))) |
247 { | 249 { |
248 char * name = g_strdup_printf("%s: ", who); | 250 char * name = g_strdup_printf("%s: ", who); |