message_textview is not editable when we are not connected

This commit is contained in:
Yann Leboulanger 2006-03-26 10:43:18 +00:00
parent f58503f8e7
commit ee6ce3c324
1 changed files with 2 additions and 0 deletions

View File

@ -726,10 +726,12 @@ class ChatControlBase(MessageControl):
def got_connected(self):
self.msg_textview.set_sensitive(True)
self.msg_textview.set_editable(True)
self.xml.get_widget('send_button').set_sensitive(True)
def got_disconnected(self):
self.msg_textview.set_sensitive(False)
self.msg_textview.set_editable(False)
self.xml.get_widget('send_button').set_sensitive(False)
################################################################################