diff options
author | Nikos Kouremenos <kourem@gmail.com> | 2005-10-29 20:06:39 +0400 |
---|---|---|
committer | Nikos Kouremenos <kourem@gmail.com> | 2005-10-29 20:06:39 +0400 |
commit | 629f565c0de8c337dc477e7e1d6bbe408a6787fb (patch) | |
tree | 5535790404485e1b2d7f60ffc9c1de8a88078d0b /src/message_textview.py | |
parent | 1e80f8c950047e38261facc5734f98d81cbe589e (diff) |
Tabbed Chat now uses MessageTextView which does it all via gtk bindings so japanese and other IM can come before us to handle Enter as required
Diffstat (limited to 'src/message_textview.py')
-rw-r--r-- | src/message_textview.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/message_textview.py b/src/message_textview.py index b30d457e6..790ea7d2a 100644 --- a/src/message_textview.py +++ b/src/message_textview.py @@ -25,11 +25,13 @@ class MessageTextView(gtk.TextView): __gsignals__ = dict( mykeypress = (gobject.SIGNAL_RUN_LAST | gobject.SIGNAL_ACTION, None, # return value - (str, int, gtk.gdk.ModifierType ) # arguments + (int, gtk.gdk.ModifierType ) # arguments ) ) def __init__(self): + gtk.TextView.__init__(self) + # set properties self.set_border_width(1) self.set_accepts_tab(True) @@ -93,7 +95,7 @@ gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Return, 0, 'mykeypress', int, gtk.keysyms.Return, gtk.gdk.ModifierType, 0) -# Ctrl+Enter +# Ctrl + Enter gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Return, gtk.gdk.CONTROL_MASK, 'mykeypress', int, gtk.keysyms.Return, gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK) @@ -103,7 +105,7 @@ gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.KP_Enter, 0, 'mykeypress', int, gtk.keysyms.KP_Enter, gtk.gdk.ModifierType, 0) -# Ctrl+ Keypad Enter +# Ctrl + Keypad Enter gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.KP_Enter, gtk.gdk.CONTROL_MASK, 'mykeypress', int, gtk.keysyms.KP_Enter, gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK) |