comparison src/conversation.c @ 964:2cd7b73e2c9a

[gaim-migrate @ 974] damn i'm smooth. chat is working now. :) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 10 Oct 2000 10:04:59 +0000
parents fa681641643d
children 2586b2a3725e
comparison
equal deleted inserted replaced
963:c1fb7afe4fd7 964:2cd7b73e2c9a
247 g_free(c); 247 g_free(c);
248 } 248 }
249 249
250 void update_log_convs() 250 void update_log_convs()
251 { 251 {
252 GSList *C = connections;
253 struct gaim_connection *g;
254 GSList *bcs;
252 GList *cnv = conversations; 255 GList *cnv = conversations;
253 struct conversation *c; 256 struct conversation *c;
254 257
255 while(cnv) { 258 while(cnv) {
256 c = (struct conversation *)cnv->data; 259 c = (struct conversation *)cnv->data;
259 gtk_widget_set_sensitive(c->log_button, ((general_options & OPT_GEN_LOG_ALL)) ? FALSE : TRUE); 262 gtk_widget_set_sensitive(c->log_button, ((general_options & OPT_GEN_LOG_ALL)) ? FALSE : TRUE);
260 263
261 cnv = cnv->next; 264 cnv = cnv->next;
262 } 265 }
263 266
264 cnv = buddy_chats; 267 while (C) {
265 while(cnv) { 268 g = (struct gaim_connection *)C->data;
266 c = (struct conversation *)cnv->data; 269 bcs = g->buddy_chats;
267 270 while(bcs) {
268 if (c->log_button) 271 c = (struct conversation *)bcs->data;
269 gtk_widget_set_sensitive(c->log_button, ((general_options & OPT_GEN_LOG_ALL)) ? FALSE : TRUE); 272
270 273 if (c->log_button)
271 cnv = cnv->next; 274 gtk_widget_set_sensitive(c->log_button, ((general_options & OPT_GEN_LOG_ALL)) ? FALSE : TRUE);
275
276 bcs = bcs->next;
277 }
278 C = C->next;
272 } 279 }
273 } 280 }
274 281
275 void update_font_buttons() 282 void update_font_buttons()
276 { 283 {
379 if (c->log_dialog) 386 if (c->log_dialog)
380 gtk_widget_destroy(c->log_dialog); 387 gtk_widget_destroy(c->log_dialog);
381 c->log_dialog = NULL; 388 c->log_dialog = NULL;
382 389
383 if (c->is_chat) { 390 if (c->is_chat) {
384 serv_chat_leave(c->id); 391 serv_chat_leave(c->gc, c->id);
385 } else { 392 } else {
386 if (c->is_direct) { 393 if (c->is_direct) {
387 if (c->gc->protocol == PROTO_OSCAR) { 394 if (c->gc->protocol == PROTO_OSCAR) {
388 gdk_input_remove(c->watcher); 395 gdk_input_remove(c->watcher);
389 sprintf(debug_buff, "Closing DirectIM conversation (%p)\n", c->conn); 396 sprintf(debug_buff, "Closing DirectIM conversation (%p)\n", c->conn);
692 serv_send_im(c->name, buf, 0); 699 serv_send_im(c->name, buf, 0);
693 700
694 if (c->makesound && (sound_options & OPT_SOUND_SEND)) 701 if (c->makesound && (sound_options & OPT_SOUND_SEND))
695 play_sound(SEND); 702 play_sound(SEND);
696 } else { 703 } else {
697 serv_chat_send(c->id, buf); 704 serv_chat_send(c->gc, c->id, buf);
698 705
699 /* no sound because we do that when we receive our message */ 706 /* no sound because we do that when we receive our message */
700 } 707 }
701 708
702 quiet_set(c->bold, FALSE); 709 quiet_set(c->bold, FALSE);