Fixed previous changeset and prevent traceback in command system

This commit is contained in:
Denis Fomin 2011-03-11 00:35:26 +03:00
parent b74852014e
commit 4b61a8682c
3 changed files with 15 additions and 3 deletions

View File

@ -175,7 +175,7 @@ class CommandTools:
Add given text to the input history, so user can scroll through
it using ctrl + up/down arrow keys.
"""
self.save_sent_message(text)
self.save_message(text, 'sent')
@property
def connection(self):
@ -189,4 +189,4 @@ class CommandTools:
"""
Get a full JID of the contact.
"""
return self.contact.get_full_jid()
return self.contact.get_full_jid()

View File

@ -1809,7 +1809,7 @@ class GroupchatControl(ChatControlBase):
label = self.get_seclabel()
if message != '' or message != '\n':
self.save_sent_message(message)
self.save_message(message, 'sent')
# Send the message
gajim.connections[self.account].send_gc_message(self.room_jid,

View File

@ -345,6 +345,18 @@ gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Down,
gtk.gdk.CONTROL_MASK, 'mykeypress', int, gtk.keysyms.Down,
gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK)
# CTRL + SHIFT + UP
gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Up,
gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK, 'mykeypress', int,
gtk.keysyms.Up, gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK |
gtk.gdk.SHIFT_MASK)
# CTRL + SHIFT + DOWN
gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Down,
gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK, 'mykeypress', int,
gtk.keysyms.Down, gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK |
gtk.gdk.SHIFT_MASK)
# ENTER
gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Return,
0, 'mykeypress', int, gtk.keysyms.Return,