Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 7583:532635bc38c1
[gaim-migrate @ 8201]
I just have an affinity for deleting stuff.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 21 Nov 2003 05:19:54 +0000 |
parents | 54b370f7d9bf |
children | 59c1cee97cbb |
comparison
equal
deleted
inserted
replaced
7582:3e0404393761 | 7583:532635bc38c1 |
---|---|
4047 #if 0 | 4047 #if 0 |
4048 g_signal_connect(G_OBJECT(gtkconv->entry), "drag_data_received", | 4048 g_signal_connect(G_OBJECT(gtkconv->entry), "drag_data_received", |
4049 G_CALLBACK(conv_dnd_recv), conv); | 4049 G_CALLBACK(conv_dnd_recv), conv); |
4050 #endif | 4050 #endif |
4051 | 4051 |
4052 /* | |
4053 * Write the New Conversation log string. | |
4054 * | |
4055 * This should probably be elsewhere, but then, logging should | |
4056 * be moved out in some way, either via plugin or via a new API. | |
4057 | |
4058 if (gaim_conversation_is_logging(conv) && | |
4059 conv_type != GAIM_CONV_MISC) { | |
4060 | |
4061 FILE *fd; | |
4062 char filename[256]; | |
4063 | |
4064 g_snprintf(filename, sizeof(filename), "%s%s", | |
4065 gaim_normalize(gaim_conversation_get_account(conv),name), | |
4066 (conv_type == GAIM_CONV_CHAT ? ".chat" : "")); | |
4067 | |
4068 fd = open_log_file(filename, (conv_type == GAIM_CONV_CHAT)); | |
4069 | |
4070 if (fd) { | |
4071 if (!gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) | |
4072 fprintf(fd, | |
4073 _("<HR><BR><H3 Align=Center> " | |
4074 "---- New Conversation @ %s ----</H3><BR>\n"), | |
4075 gaim_date_full()); | |
4076 else | |
4077 fprintf(fd, _("---- New Conversation @ %s ----\n"), | |
4078 gaim_date_full()); | |
4079 | |
4080 fclose(fd); | |
4081 } | |
4082 } | |
4083 */ | |
4084 /* Setup the container for the tab. */ | 4052 /* Setup the container for the tab. */ |
4085 gtkconv->tab_cont = tab_cont = gtk_vbox_new(FALSE, 5); | 4053 gtkconv->tab_cont = tab_cont = gtk_vbox_new(FALSE, 5); |
4086 gtk_container_set_border_width(GTK_CONTAINER(tab_cont), 5); | 4054 gtk_container_set_border_width(GTK_CONTAINER(tab_cont), 5); |
4087 gtk_container_add(GTK_CONTAINER(tab_cont), pane); | 4055 gtk_container_add(GTK_CONTAINER(tab_cont), pane); |
4088 gtk_widget_show(pane); | 4056 gtk_widget_show(pane); |
4543 "<!--(%s) --><B>%s</B><BR>", | 4511 "<!--(%s) --><B>%s</B><BR>", |
4544 mdate, message); | 4512 mdate, message); |
4545 | 4513 |
4546 gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->imhtml), buf2, 0, images); | 4514 gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->imhtml), buf2, 0, images); |
4547 | 4515 |
4548 if (gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) { | 4516 /* Add the message to a conversations scrollback buffer */ |
4549 char *t1 = gaim_markup_strip_html(buf); | 4517 conv->history = g_string_append(conv->history, buf); |
4550 | 4518 conv->history = g_string_append(conv->history, "<BR>\n"); |
4551 conv->history = g_string_append(conv->history, t1); | |
4552 conv->history = g_string_append(conv->history, "\n"); | |
4553 | |
4554 g_free(t1); | |
4555 } | |
4556 else { | |
4557 conv->history = g_string_append(conv->history, buf); | |
4558 conv->history = g_string_append(conv->history, "<BR>\n"); | |
4559 } | |
4560 | 4519 |
4561 } else if (flags & GAIM_MESSAGE_NO_LOG) { | 4520 } else if (flags & GAIM_MESSAGE_NO_LOG) { |
4562 g_snprintf(buf, BUF_LONG, | 4521 g_snprintf(buf, BUF_LONG, |
4563 "<B><FONT COLOR=\"#777777\">%s</FONT></B><BR>", | 4522 "<B><FONT COLOR=\"#777777\">%s</FONT></B><BR>", |
4564 message); | 4523 message); |