Mercurial > pidgin.yaz
comparison src/away.c @ 6982:083d1e4a9c78
[gaim-migrate @ 7538]
This is Mr. Holland's Opus. And by Mr. Holland I mean Robot101. He
rewrote the coreish IM image support so that the binary data gets
ripped out in the prpl and put in an imgstore instead of just being
passed in the same huge as char string as the actual message. This
is good because it's prpl agnostic, or something. It also means
we don't have a silly length of "-1" with pretty much every send or
receive IM function.
It should be crash free, bug free, and memleak free, but additional
testing is always a good thing.
If you like good stuff then you'll love this patch. But don't take
my word for it--ba dun dunt!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 27 Sep 2003 19:17:21 +0000 |
parents | 34f87e4078fc |
children | bf630f7dfdcd |
comparison
equal
deleted
inserted
replaced
6981:abd3c684da31 | 6982:083d1e4a9c78 |
---|---|
76 if (!cnv) | 76 if (!cnv) |
77 cnv = gaim_conversation_new(GAIM_CONV_IM, account, qm->name); | 77 cnv = gaim_conversation_new(GAIM_CONV_IM, account, qm->name); |
78 else | 78 else |
79 gaim_conversation_set_account(cnv, account); | 79 gaim_conversation_set_account(cnv, account); |
80 | 80 |
81 gaim_im_write(GAIM_IM(cnv), NULL, qm->message, qm->len, | 81 gaim_im_write(GAIM_IM(cnv), NULL, qm->message, |
82 qm->flags, qm->tm); | 82 qm->flags, qm->tm); |
83 g_free(qm->message); | 83 g_free(qm->message); |
84 g_free(qm); | 84 g_free(qm); |
85 templist = message_queue = g_slist_remove(message_queue, qm); | 85 templist = message_queue = g_slist_remove(message_queue, qm); |
86 | 86 |
116 if (!cnv) | 116 if (!cnv) |
117 cnv = gaim_conversation_new(GAIM_CONV_IM, account, qm->name); | 117 cnv = gaim_conversation_new(GAIM_CONV_IM, account, qm->name); |
118 else | 118 else |
119 gaim_conversation_set_account(cnv, account); | 119 gaim_conversation_set_account(cnv, account); |
120 | 120 |
121 gaim_im_write(GAIM_IM(cnv), NULL, qm->message, -1, qm->flags, qm->tm); | 121 gaim_im_write(GAIM_IM(cnv), NULL, qm->message, qm->flags, qm->tm); |
122 | 122 |
123 g_free(qm->message); | 123 g_free(qm->message); |
124 g_free(qm); | 124 g_free(qm); |
125 | 125 |
126 q->data = NULL; | 126 q->data = NULL; |
226 awaytext = gtk_imhtml_new(NULL, NULL); | 226 awaytext = gtk_imhtml_new(NULL, NULL); |
227 gtk_container_add(GTK_CONTAINER(sw), awaytext); | 227 gtk_container_add(GTK_CONTAINER(sw), awaytext); |
228 gaim_setup_imhtml(awaytext); | 228 gaim_setup_imhtml(awaytext); |
229 gtk_widget_show(awaytext); | 229 gtk_widget_show(awaytext); |
230 buf = stylize(a->message, BUF_LONG); | 230 buf = stylize(a->message, BUF_LONG); |
231 gtk_imhtml_append_text(GTK_IMHTML(awaytext), buf, -1, GTK_IMHTML_NO_TITLE | | 231 gtk_imhtml_append_text(GTK_IMHTML(awaytext), buf, GTK_IMHTML_NO_TITLE | |
232 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); | 232 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); |
233 g_free(buf); | 233 g_free(buf); |
234 gtk_imhtml_append_text(GTK_IMHTML(awaytext), "<BR>", -1, | 234 gtk_imhtml_append_text(GTK_IMHTML(awaytext), "<BR>", |
235 GTK_IMHTML_NO_TITLE | GTK_IMHTML_NO_COMMENTS | | 235 GTK_IMHTML_NO_TITLE | GTK_IMHTML_NO_COMMENTS | |
236 GTK_IMHTML_NO_SCROLL); | 236 GTK_IMHTML_NO_SCROLL); |
237 | 237 |
238 awayqueuesw = gtk_scrolled_window_new(NULL, NULL); | 238 awayqueuesw = gtk_scrolled_window_new(NULL, NULL); |
239 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(awayqueuesw), | 239 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(awayqueuesw), |