cosmetic changes

This commit is contained in:
Nikos Kouremenos 2008-02-06 14:59:28 +00:00
parent 7e6bcdc6ed
commit 15acf57f5f
2 changed files with 4 additions and 3 deletions

View File

@ -281,7 +281,7 @@ class ChatControlBase(MessageControl):
self.conv_textview.tv.show()
self._paint_banner()
# For JEP-0172
# For XEP-0172
self.user_nick = None
self.smooth = True

View File

@ -628,14 +628,15 @@ class MessageWindow(object):
self.show_title(control = new_ctrl)
def _on_notebook_key_press(self, widget, event):
control = self.get_active_control()
# Ctrl+PageUP / DOWN has to be handled by notebook
if (event.state & gtk.gdk.CONTROL_MASK and
event.keyval in (gtk.keysyms.Page_Down, gtk.keysyms.Page_Up)):
return False
# when tab itselft is selected, make sure <- and -> are allowed for navigating between tabs
# when tab itself is selected, make sure <- and -> are allowed for navigating between tabs
if event.keyval in (gtk.keysyms.Left, gtk.keysyms.Right):
return False
control = self.get_active_control()
if isinstance(control, ChatControlBase):
# we forwarded it to message textview
control.msg_textview.emit('key_press_event', event)