comparison src/gtkconv.c @ 7589:59c1cee97cbb

[gaim-migrate @ 8207] this wasn't used, and leaked memory committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 21 Nov 2003 18:12:55 +0000
parents 532635bc38c1
children 994b2d782711
comparison
equal deleted inserted replaced
7588:4434a1615e02 7589:59c1cee97cbb
4442 { 4442 {
4443 GaimGtkConversation *gtkconv; 4443 GaimGtkConversation *gtkconv;
4444 GaimConvWindow *win; 4444 GaimConvWindow *win;
4445 GaimConnection *gc; 4445 GaimConnection *gc;
4446 int gtk_font_options = 0; 4446 int gtk_font_options = 0;
4447 GString *log_str;
4448 GSList *images = NULL; 4447 GSList *images = NULL;
4449 char buf[BUF_LONG]; 4448 char buf[BUF_LONG];
4450 char buf2[BUF_LONG]; 4449 char buf2[BUF_LONG];
4451 char mdate[64]; 4450 char mdate[64];
4452 char color[10]; 4451 char color[10];
4489 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_fonts")) 4488 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_fonts"))
4490 gtk_font_options ^= GTK_IMHTML_NO_FONTS; 4489 gtk_font_options ^= GTK_IMHTML_NO_FONTS;
4491 4490
4492 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_font_sizes")) 4491 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_font_sizes"))
4493 gtk_font_options ^= GTK_IMHTML_NO_SIZES; 4492 gtk_font_options ^= GTK_IMHTML_NO_SIZES;
4494
4495 if (!gaim_prefs_get_bool("/gaim/gtk/logging/strip_html"))
4496 gtk_font_options ^= GTK_IMHTML_RETURN_LOG;
4497 4493
4498 if (GAIM_PLUGIN_PROTOCOL_INFO(gaim_find_prpl(gaim_account_get_protocol(conv->account)))->options & 4494 if (GAIM_PLUGIN_PROTOCOL_INFO(gaim_find_prpl(gaim_account_get_protocol(conv->account)))->options &
4499 OPT_PROTO_USE_POINTSIZE) { 4495 OPT_PROTO_USE_POINTSIZE) {
4500 gtk_font_options ^= GTK_IMHTML_USE_POINTSIZE; 4496 gtk_font_options ^= GTK_IMHTML_USE_POINTSIZE;
4501 } 4497 }
4617 g_free(pre); 4613 g_free(pre);
4618 } 4614 }
4619 else 4615 else
4620 with_font_tag = g_memdup(new_message, length); 4616 with_font_tag = g_memdup(new_message, length);
4621 4617
4622 log_str = gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->imhtml), 4618 gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->imhtml),
4623 with_font_tag, gtk_font_options, images); 4619 with_font_tag, gtk_font_options, images);
4624 4620
4625 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), "<BR>", 0); 4621 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), "<BR>", 0);
4626 4622
4627 /*conv->history = g_string_append(conv->history, t1); 4623 /*conv->history = g_string_append(conv->history, t1);