diff -r 2a86ad923464 -r 65e95df8daea pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sat Jun 02 19:01:44 2012 +0000 +++ b/pidgin/gtkconv.c Sat Jun 02 19:08:43 2012 +0000 @@ -1066,12 +1066,10 @@ static void savelog_writefile_cb(void *user_data, const char *filename) { - /* TODO WEBKIT: I don't know how to support this using webkit yet. */ -#if 0 PurpleConversation *conv = (PurpleConversation *)user_data; + GtkWebView *webview; FILE *fp; const char *name; - char **lines; gchar *text; if ((fp = g_fopen(filename, "w+")) == NULL) { @@ -1079,22 +1077,27 @@ return; } + webview = GTK_WEBVIEW(PIDGIN_CONVERSATION(conv)->webview); name = purple_conversation_get_name(conv); - fprintf(fp, "\n\n"); + fprintf(fp, "\n"); + + fprintf(fp, "\n"); fprintf(fp, "\n"); - fprintf(fp, "%s\n\n\n", name); - fprintf(fp, _("

Conversation with %s

\n"), name); - - lines = gtk_imhtml_get_markup_lines( - GTK_IMHTML(PIDGIN_CONVERSATION(conv)->imhtml)); - text = g_strjoinv("
\n", lines); + fprintf(fp, "%s\n", name); + text = gtk_webview_get_head_html(webview); fprintf(fp, "%s", text); g_free(text); - g_strfreev(lines); - - fprintf(fp, "\n\n\n"); + fprintf(fp, "\n"); + + fprintf(fp, "\n"); + fprintf(fp, _("

Conversation with %s

\n"), name); + text = gtk_webview_get_body_html(webview); + fprintf(fp, "%s", text); + g_free(text); + fprintf(fp, "\n\n"); + + fprintf(fp, "\n"); fclose(fp); -#endif /* if 0 */ } /*