.set_text('', -1) becomes .set_text('')
This commit is contained in:
parent
f094f65bd2
commit
b28f405963
|
@ -495,7 +495,7 @@ class GroupchatWindow(chat.Chat):
|
|||
self.last_key_tabs[room_jid] = False
|
||||
return False
|
||||
self.send_gc_message(message)
|
||||
message_buffer.set_text('', -1)
|
||||
message_buffer.set_text('')
|
||||
return True
|
||||
elif event.keyval == gtk.keysyms.Up:
|
||||
if event.state & gtk.gdk.CONTROL_MASK: #Ctrl+UP
|
||||
|
@ -521,7 +521,7 @@ class GroupchatWindow(chat.Chat):
|
|||
# send the message
|
||||
self.send_gc_message(message)
|
||||
|
||||
message_buffer.set_text('', -1)
|
||||
message_buffer.set_text('')
|
||||
|
||||
def send_gc_message(self, message):
|
||||
'''call this function to send our message'''
|
||||
|
|
|
@ -246,7 +246,7 @@ class TabbedChatWindow(chat.Chat):
|
|||
# send the message
|
||||
self.send_message(message)
|
||||
|
||||
message_buffer.set_text('', -1)
|
||||
message_buffer.set_text('')
|
||||
|
||||
def remove_tab(self, jid):
|
||||
if time.time() - gajim.last_message_time[self.account][jid] < 2:
|
||||
|
@ -341,7 +341,7 @@ class TabbedChatWindow(chat.Chat):
|
|||
# send the message
|
||||
self.send_message(message)
|
||||
|
||||
message_buffer.set_text('', -1)
|
||||
message_buffer.set_text('')
|
||||
return True
|
||||
elif event.keyval == gtk.keysyms.Up:
|
||||
if event.state & gtk.gdk.CONTROL_MASK: #Ctrl+UP
|
||||
|
@ -427,7 +427,7 @@ class TabbedChatWindow(chat.Chat):
|
|||
else:
|
||||
gajim.connections[self.account].send_message(jid, message, keyID)
|
||||
print self.chatstates[jid]
|
||||
message_buffer.set_text('', -1)
|
||||
message_buffer.set_text('')
|
||||
self.print_conversation(message, jid, jid, encrypted = encrypted)
|
||||
|
||||
def on_contact_button_clicked(self, widget):
|
||||
|
|
Loading…
Reference in New Issue