Mercurial > pidgin.yaz
comparison src/conversation.c @ 1341:6ec45c45157c
[gaim-migrate @ 1351]
Ok, so I got bored and finished it :-)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 21 Dec 2000 02:05:53 +0000 |
parents | 1526caa87138 |
children | 84aef77f0add |
comparison
equal
deleted
inserted
replaced
1340:1526caa87138 | 1341:6ec45c45157c |
---|---|
1656 GtkWidget *parent = c->add->parent; | 1656 GtkWidget *parent = c->add->parent; |
1657 gtk_widget_destroy(c->add); | 1657 gtk_widget_destroy(c->add); |
1658 | 1658 |
1659 if (c->gc && find_buddy(c->gc, c->name)) { | 1659 if (c->gc && find_buddy(c->gc, c->name)) { |
1660 c->add = picture_button2(c->window, _("Remove"), gnome_remove_xpm, dispstyle); | 1660 c->add = picture_button2(c->window, _("Remove"), gnome_remove_xpm, dispstyle); |
1661 if (c->gc->prpl->remove_buddy == NULL) | |
1662 gtk_widget_set_sensitive(c->add, FALSE); | |
1663 else | |
1664 gtk_widget_set_sensitive(c->add, TRUE); | |
1661 } else { | 1665 } else { |
1662 c->add = picture_button2(c->window, _("Add"), gnome_add_xpm, dispstyle); | 1666 c->add = picture_button2(c->window, _("Add"), gnome_add_xpm, dispstyle); |
1667 if (c->gc->prpl->add_buddy == NULL) | |
1668 gtk_widget_set_sensitive(c->add, FALSE); | |
1669 else | |
1670 gtk_widget_set_sensitive(c->add, TRUE); | |
1663 } | 1671 } |
1664 gtk_signal_connect(GTK_OBJECT(c->add), "clicked", GTK_SIGNAL_FUNC(add_callback), c); | 1672 gtk_signal_connect(GTK_OBJECT(c->add), "clicked", GTK_SIGNAL_FUNC(add_callback), c); |
1665 gtk_box_pack_end(GTK_BOX(parent), c->add, dispstyle, dispstyle, 0); | 1673 gtk_box_pack_end(GTK_BOX(parent), c->add, dispstyle, dispstyle, 0); |
1666 gtk_box_reorder_child(GTK_BOX(parent), c->add, 2); | 1674 gtk_box_reorder_child(GTK_BOX(parent), c->add, 2); |
1667 gtk_widget_show(c->add); | 1675 gtk_widget_show(c->add); |
1724 { | 1732 { |
1725 if (c->gc->prpl->set_info == NULL) | 1733 if (c->gc->prpl->set_info == NULL) |
1726 gtk_widget_set_sensitive(c->info, FALSE); | 1734 gtk_widget_set_sensitive(c->info, FALSE); |
1727 else | 1735 else |
1728 gtk_widget_set_sensitive(c->info, TRUE); | 1736 gtk_widget_set_sensitive(c->info, TRUE); |
1737 | |
1738 if (c->gc->prpl->send_im == NULL) | |
1739 gtk_widget_set_sensitive(c->send, FALSE); | |
1740 else | |
1741 gtk_widget_set_sensitive(c->send, TRUE); | |
1742 | |
1743 if (c->gc->prpl->warn == NULL) | |
1744 gtk_widget_set_sensitive(c->warn, FALSE); | |
1745 else | |
1746 gtk_widget_set_sensitive(c->warn, TRUE); | |
1747 | |
1748 if (c->gc->prpl->add_permit == NULL) | |
1749 gtk_widget_set_sensitive(c->block, FALSE); | |
1750 else | |
1751 gtk_widget_set_sensitive(c->block, TRUE); | |
1752 | |
1753 update_convo_add_button(c); | |
1729 } | 1754 } |
1730 | 1755 |
1731 | 1756 |
1732 void show_conv(struct conversation *c) | 1757 void show_conv(struct conversation *c) |
1733 { | 1758 { |