message_textview is not editable when we are not connected
This commit is contained in:
parent
f58503f8e7
commit
ee6ce3c324
|
@ -726,10 +726,12 @@ class ChatControlBase(MessageControl):
|
||||||
|
|
||||||
def got_connected(self):
|
def got_connected(self):
|
||||||
self.msg_textview.set_sensitive(True)
|
self.msg_textview.set_sensitive(True)
|
||||||
|
self.msg_textview.set_editable(True)
|
||||||
self.xml.get_widget('send_button').set_sensitive(True)
|
self.xml.get_widget('send_button').set_sensitive(True)
|
||||||
|
|
||||||
def got_disconnected(self):
|
def got_disconnected(self):
|
||||||
self.msg_textview.set_sensitive(False)
|
self.msg_textview.set_sensitive(False)
|
||||||
|
self.msg_textview.set_editable(False)
|
||||||
self.xml.get_widget('send_button').set_sensitive(False)
|
self.xml.get_widget('send_button').set_sensitive(False)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in New Issue