changeset 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
files src/conversation.c
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Thu Dec 21 02:01:20 2000 +0000
+++ b/src/conversation.c	Thu Dec 21 02:05:53 2000 +0000
@@ -1658,8 +1658,16 @@
 
 	if (c->gc && find_buddy(c->gc, c->name)) {
 		c->add = picture_button2(c->window, _("Remove"), gnome_remove_xpm, dispstyle);
+		if (c->gc->prpl->remove_buddy == NULL)
+			gtk_widget_set_sensitive(c->add, FALSE);
+		else
+			gtk_widget_set_sensitive(c->add, TRUE);
 	} else {
 		c->add = picture_button2(c->window, _("Add"), gnome_add_xpm, dispstyle);
+		if (c->gc->prpl->add_buddy == NULL)
+			gtk_widget_set_sensitive(c->add, FALSE);
+		else
+			gtk_widget_set_sensitive(c->add, TRUE);
 	}
 	gtk_signal_connect(GTK_OBJECT(c->add), "clicked", GTK_SIGNAL_FUNC(add_callback), c);
 	gtk_box_pack_end(GTK_BOX(parent), c->add, dispstyle, dispstyle, 0);
@@ -1726,6 +1734,23 @@
 		gtk_widget_set_sensitive(c->info, FALSE);
 	else
 		gtk_widget_set_sensitive(c->info, TRUE);
+
+	if (c->gc->prpl->send_im == NULL)
+		gtk_widget_set_sensitive(c->send, FALSE);
+	else
+		gtk_widget_set_sensitive(c->send, TRUE);
+
+	if (c->gc->prpl->warn == NULL)
+		gtk_widget_set_sensitive(c->warn, FALSE);
+	else
+		gtk_widget_set_sensitive(c->warn, TRUE);
+
+	if (c->gc->prpl->add_permit == NULL)
+		gtk_widget_set_sensitive(c->block, FALSE);
+	else
+		gtk_widget_set_sensitive(c->block, TRUE);
+
+	update_convo_add_button(c);
 }