comparison src/away.c @ 2856:b1e300a85678

[gaim-migrate @ 2869] rewrote the html parser in gtkimhtml. yes, that's really all i did. the reason for the massive change is because i added a length argument, which then needed to be propogated down to everything that would ever receive anything that would get drawn to the window. the new parser isn't any faster. that wasn't my goal. it's much more understandable now (hopefully, anyway). committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 08 Dec 2001 09:48:52 +0000
parents f3c094e78609
children 538c58b43eff
comparison
equal deleted inserted replaced
2855:19f786779b08 2856:b1e300a85678
72 if (!cnv) 72 if (!cnv)
73 cnv = new_conversation(qm->name); 73 cnv = new_conversation(qm->name);
74 if (g_slist_index(connections, qm->gc) >= 0) 74 if (g_slist_index(connections, qm->gc) >= 0)
75 set_convo_gc(cnv, qm->gc); 75 set_convo_gc(cnv, qm->gc);
76 76
77 write_to_conv(cnv, qm->message, qm->flags, NULL, qm->tm); 77 write_to_conv(cnv, qm->message, qm->flags, NULL, qm->tm, qm->len);
78 78
79 message_queue = g_slist_remove(message_queue, qm); 79 message_queue = g_slist_remove(message_queue, qm);
80 80
81 g_free(qm->message); 81 g_free(qm->message);
82 g_free(qm); 82 g_free(qm);
109 if (!cnv) 109 if (!cnv)
110 cnv = new_conversation(qm->name); 110 cnv = new_conversation(qm->name);
111 if (g_slist_index(connections, qm->gc) >= 0) 111 if (g_slist_index(connections, qm->gc) >= 0)
112 set_convo_gc(cnv, qm->gc); 112 set_convo_gc(cnv, qm->gc);
113 113
114 write_to_conv(cnv, qm->message, qm->flags, NULL, qm->tm); 114 write_to_conv(cnv, qm->message, qm->flags, NULL, qm->tm, qm->len);
115 g_free(qm->message); 115 g_free(qm->message);
116 g_free(qm); 116 g_free(qm);
117 templist = message_queue = g_slist_remove(message_queue, qm); 117 templist = message_queue = g_slist_remove(message_queue, qm);
118 118
119 } else { 119 } else {
220 awaytext = gtk_imhtml_new(NULL, NULL); 220 awaytext = gtk_imhtml_new(NULL, NULL);
221 gtk_container_add(GTK_CONTAINER(sw), awaytext); 221 gtk_container_add(GTK_CONTAINER(sw), awaytext);
222 gaim_setup_imhtml(awaytext); 222 gaim_setup_imhtml(awaytext);
223 gtk_widget_show(awaytext); 223 gtk_widget_show(awaytext);
224 buf = stylize(a->message, BUF_LONG); 224 buf = stylize(a->message, BUF_LONG);
225 gtk_imhtml_append_text(GTK_IMHTML(awaytext), buf, GTK_IMHTML_NO_TITLE | 225 gtk_imhtml_append_text(GTK_IMHTML(awaytext), buf, -1, GTK_IMHTML_NO_TITLE |
226 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 226 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
227 g_free(buf); 227 g_free(buf);
228 gtk_imhtml_append_text(GTK_IMHTML(awaytext), "<BR>", GTK_IMHTML_NO_TITLE | 228 gtk_imhtml_append_text(GTK_IMHTML(awaytext), "<BR>", -1, GTK_IMHTML_NO_TITLE |
229 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 229 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
230 230
231 clistqueuesw = gtk_scrolled_window_new(NULL, NULL); 231 clistqueuesw = gtk_scrolled_window_new(NULL, NULL);
232 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(clistqueuesw), GTK_POLICY_NEVER, 232 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(clistqueuesw), GTK_POLICY_NEVER,
233 GTK_POLICY_AUTOMATIC); 233 GTK_POLICY_AUTOMATIC);