changeset 2094:be10a1243ed7

[gaim-migrate @ 2104] Chris Testa's fix for chat send sensitivity committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 01 Aug 2001 00:26:09 +0000
parents 83d8a9b7e89b
children df9710306152
files src/conversation.c
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Wed Aug 01 00:20:44 2001 +0000
+++ b/src/conversation.c	Wed Aug 01 00:26:09 2001 +0000
@@ -1904,10 +1904,17 @@
 	else if (c->info)
 		gtk_widget_set_sensitive(c->info, TRUE);
 
-	if (c->gc->prpl->send_im == NULL && c->send)
-		gtk_widget_set_sensitive(c->send, FALSE);
-	else
-		gtk_widget_set_sensitive(c->send, TRUE);
+	if (c->is_chat) {
+		if (c->gc->prpl->chat_send == NULL && c->send)
+			gtk_widget_set_sensitive(c->send, FALSE);
+		else
+			gtk_widget_set_sensitive(c->send, TRUE);
+	} else {
+		if (c->gc->prpl->send_im == NULL && c->send)
+			gtk_widget_set_sensitive(c->send, FALSE);
+		else
+			gtk_widget_set_sensitive(c->send, TRUE);
+	}
 
 	if (c->gc->prpl->warn == NULL && c->warn)
 		gtk_widget_set_sensitive(c->warn, FALSE);