diff console/gntconv.c @ 14060:81648c6aa918

[gaim-migrate @ 16678] Show timestamps (or not) in conversations. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 09 Aug 2006 06:23:18 +0000
parents 2d1b41e3cf0d
children ae4cbed1b309
line wrap: on
line diff
--- a/console/gntconv.c	Wed Aug 09 03:41:45 2006 +0000
+++ b/console/gntconv.c	Wed Aug 09 06:23:18 2006 +0000
@@ -229,6 +229,9 @@
 
 	g_return_if_fail(ggconv != NULL);
 
+	if (gaim_prefs_get_bool("/gaim/gnt/conversations/timestamps"))
+		gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv),
+					gaim_utf8_strftime("(%H:%M:%S) ", localtime(&mtime)), GNT_TEXT_FLAG_DIM);
 	if (who && *who && (flags & (GAIM_MESSAGE_SEND | GAIM_MESSAGE_RECV)))
 	{
 		char * name = g_strdup_printf("%s: ", who);