# HG changeset patch # User Richard Laager # Date 1141061415 0 # Node ID d4af79bc2d0a467237a0ca405d6c9c7199143ad9 # Parent 999571d910ed6bd7d37a9ad7d0ccb2109d8f166c [gaim-migrate @ 15707] Solve the timestamp plugin/history plugin interaction problem and remove trailing whitespace from the history before it's printed. committer: Tailor Script diff -r 999571d910ed -r d4af79bc2d0a plugins/history.c --- a/plugins/history.c Mon Feb 27 17:06:21 2006 +0000 +++ b/plugins/history.c Mon Feb 27 17:30:15 2006 +0000 @@ -114,11 +114,15 @@ gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->imhtml), gaim_account_get_protocol_name(((GaimLog*)logs->data)->account)); + if (gtk_text_buffer_get_char_count(gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtkconv->imhtml)))) + gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), "
", options); + header = g_strdup_printf(_("Conversation with %s on %s:
"), alias, gaim_date_format_full(localtime(&((GaimLog *)logs->data)->time))); gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), header, options); g_free(header); + g_strchomp(history); gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), history, options); g_free(history);