if message_tv is not sensitive, don't print things there

This commit is contained in:
Yann Leboulanger 2005-10-11 16:23:50 +00:00
parent f03cae3e0e
commit c788403766
1 changed files with 4 additions and 3 deletions

View File

@ -819,6 +819,7 @@ class Chat:
pass
else: # it's a normal key press make sure message_textview has focus
message_textview = self.xmls[jid].get_widget('message_textview')
if message_textview.get_property('sensitive'):
if not message_textview.is_focus():
message_textview.grab_focus()
message_textview.emit('key_press_event', event)