Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 4090:286d487a4fd7
[gaim-migrate @ 4305]
Fixed the problems with the add/remove button being moved and keeping its
original state.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 17 Dec 2002 06:53:50 +0000 |
parents | 7f4f3aa61069 |
children | 0c131a8ea3d1 |
comparison
equal
deleted
inserted
replaced
4089:7f4f3aa61069 | 4090:286d487a4fd7 |
---|---|
1569 parent = c->send->parent; | 1569 parent = c->send->parent; |
1570 | 1570 |
1571 c->send = change_text(c->window, _("Send"), c->send, "gtk-convert", opt); | 1571 c->send = change_text(c->window, _("Send"), c->send, "gtk-convert", opt); |
1572 gtk_box_pack_end(GTK_BOX(parent), c->send, FALSE, FALSE, 0); | 1572 gtk_box_pack_end(GTK_BOX(parent), c->send, FALSE, FALSE, 0); |
1573 | 1573 |
1574 gtk_widget_destroy(c->sep2); | |
1575 c->sep2 = gtk_vseparator_new(); | |
1576 gtk_box_pack_end(GTK_BOX(parent), c->sep2, FALSE, TRUE, 0); | |
1577 gtk_widget_show(c->sep2); | |
1578 | |
1579 if (find_buddy(c->gc, c->name) == NULL) | |
1580 c->add = change_text(c->window, _("Add"), c->add, "gtk-add", opt); | |
1581 else | |
1582 c->add = change_text(c->window, _("Remove"), c->add, "gtk-remove", opt); | |
1583 | |
1584 gtk_box_pack_start(GTK_BOX(parent), c->add, FALSE, FALSE, 0); | |
1585 | |
1574 c->warn = change_text(c->window, _("Warn"), c->warn, "gtk-dialog-warning", opt); | 1586 c->warn = change_text(c->window, _("Warn"), c->warn, "gtk-dialog-warning", opt); |
1575 gtk_box_pack_start(GTK_BOX(parent), c->warn, FALSE, FALSE, 0); | 1587 gtk_box_pack_start(GTK_BOX(parent), c->warn, FALSE, FALSE, 0); |
1588 | |
1589 c->info = change_text(c->window, _("Info"), c->info, "gtk-find", opt); | |
1590 gtk_box_pack_start(GTK_BOX(parent), c->info, FALSE, FALSE, 0); | |
1591 | |
1576 c->block = change_text(c->window, _("Block"), c->block, "gtk-stop", opt); | 1592 c->block = change_text(c->window, _("Block"), c->block, "gtk-stop", opt); |
1577 gtk_box_pack_start(GTK_BOX(parent), c->block, FALSE, FALSE, 0); | 1593 gtk_box_pack_start(GTK_BOX(parent), c->block, FALSE, FALSE, 0); |
1578 | |
1579 if (find_buddy(c->gc, c->name) == NULL) | |
1580 c->add = change_text(c->window, _("Add"), c->add, "gtk-add", opt); | |
1581 else | |
1582 c->add = change_text(c->window, _("Remove"), c->add, "gtk-remove", opt); | |
1583 gtk_box_pack_start(GTK_BOX(parent), c->add, FALSE, FALSE, 0); | |
1584 c->info = change_text(c->window, _("Info"), c->info, "gtk-find", opt); | |
1585 gtk_box_pack_start(GTK_BOX(parent), c->info, FALSE, FALSE, 0); | |
1586 | 1594 |
1587 gtk_button_set_relief(GTK_BUTTON(c->info), GTK_RELIEF_NONE); | 1595 gtk_button_set_relief(GTK_BUTTON(c->info), GTK_RELIEF_NONE); |
1588 gtk_button_set_relief(GTK_BUTTON(c->add), GTK_RELIEF_NONE); | 1596 gtk_button_set_relief(GTK_BUTTON(c->add), GTK_RELIEF_NONE); |
1589 gtk_button_set_relief(GTK_BUTTON(c->warn), GTK_RELIEF_NONE); | 1597 gtk_button_set_relief(GTK_BUTTON(c->warn), GTK_RELIEF_NONE); |
1590 gtk_button_set_relief(GTK_BUTTON(c->send), GTK_RELIEF_NONE); | 1598 gtk_button_set_relief(GTK_BUTTON(c->send), GTK_RELIEF_NONE); |
1596 gtk_size_group_add_widget(c->sg, c->send); | 1604 gtk_size_group_add_widget(c->sg, c->send); |
1597 gtk_size_group_add_widget(c->sg, c->block); | 1605 gtk_size_group_add_widget(c->sg, c->block); |
1598 | 1606 |
1599 gtk_box_reorder_child(GTK_BOX(parent), c->warn, 1); | 1607 gtk_box_reorder_child(GTK_BOX(parent), c->warn, 1); |
1600 gtk_box_reorder_child(GTK_BOX(parent), c->block, 2); | 1608 gtk_box_reorder_child(GTK_BOX(parent), c->block, 2); |
1601 gtk_box_reorder_child(GTK_BOX(parent), c->add, 3); | |
1602 gtk_box_reorder_child(GTK_BOX(parent), c->info, 4); | 1609 gtk_box_reorder_child(GTK_BOX(parent), c->info, 4); |
1603 gtk_box_reorder_child(GTK_BOX(parent), c->sep2, 5); | |
1604 | 1610 |
1605 | 1611 |
1606 update_buttons_by_protocol(c); | 1612 update_buttons_by_protocol(c); |
1607 | 1613 |
1608 /* XXX gtk_signal_connect(GTK_OBJECT(c->close), "clicked", GTK_SIGNAL_FUNC(close_callback), c); */ | |
1609 gtk_signal_connect(GTK_OBJECT(c->send), "clicked", GTK_SIGNAL_FUNC(send_callback), c); | 1614 gtk_signal_connect(GTK_OBJECT(c->send), "clicked", GTK_SIGNAL_FUNC(send_callback), c); |
1610 gtk_signal_connect(GTK_OBJECT(c->add), "clicked", GTK_SIGNAL_FUNC(add_callback), c); | |
1611 gtk_signal_connect(GTK_OBJECT(c->info), "clicked", GTK_SIGNAL_FUNC(info_callback), c); | 1615 gtk_signal_connect(GTK_OBJECT(c->info), "clicked", GTK_SIGNAL_FUNC(info_callback), c); |
1612 gtk_signal_connect(GTK_OBJECT(c->warn), "clicked", GTK_SIGNAL_FUNC(warn_callback), c); | 1616 gtk_signal_connect(GTK_OBJECT(c->warn), "clicked", GTK_SIGNAL_FUNC(warn_callback), c); |
1613 gtk_signal_connect(GTK_OBJECT(c->block), "clicked", GTK_SIGNAL_FUNC(block_callback), c); | 1617 gtk_signal_connect(GTK_OBJECT(c->block), "clicked", GTK_SIGNAL_FUNC(block_callback), c); |
1614 bcs = bcs->next; | 1618 bcs = bcs->next; |
1615 } | 1619 } |