Mercurial > pidgin
comparison plugins/icq/gaim_icq.c @ 2011:8195d67364a4
[gaim-migrate @ 2021]
ha
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 13 Jun 2001 23:13:06 +0000 |
parents | 8ed70631ed15 |
children | 5748a6faa461 |
comparison
equal
deleted
inserted
replaced
2010:dff412b306b8 | 2011:8195d67364a4 |
---|---|
498 } | 498 } |
499 | 499 |
500 static void icq_insert_convo(struct gaim_connection *gc, struct conversation *c) | 500 static void icq_insert_convo(struct gaim_connection *gc, struct conversation *c) |
501 { | 501 { |
502 GtkWidget *button; | 502 GtkWidget *button; |
503 struct icq_data *id = gc->proto_data; | |
504 GSList *l = id->thru_serv; | |
503 | 505 |
504 button = gtk_check_button_new_with_label("Send message through server"); | 506 button = gtk_check_button_new_with_label("Send message through server"); |
505 gtk_box_pack_start(GTK_BOX(c->lbox), button, FALSE, FALSE, 5); | 507 gtk_box_pack_start(GTK_BOX(c->lbox), button, FALSE, FALSE, 5); |
506 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_thru_serv), c); | 508 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_thru_serv), c); |
507 gtk_object_set_user_data(GTK_OBJECT(button), gc); | 509 gtk_object_set_user_data(GTK_OBJECT(button), gc); |
510 while (l) { | |
511 if (who == (long)l->data) | |
512 break; | |
513 l = l->next; | |
514 } | |
515 if (l) | |
516 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); | |
508 gtk_widget_show(button); | 517 gtk_widget_show(button); |
509 } | 518 } |
510 | 519 |
511 static void icq_remove_convo(struct gaim_connection *gc, struct conversation *c) | 520 static void icq_remove_convo(struct gaim_connection *gc, struct conversation *c) |
512 { | 521 { |