From b28f405963e1a2fd5027f95cbe201da009e2d01a Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 19 Jul 2005 17:11:33 +0000 Subject: [PATCH] .set_text('', -1) becomes .set_text('') --- src/groupchat_window.py | 4 ++-- src/tabbed_chat_window.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 66128cbf9..10d284727 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -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''' diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index a34699e02..4fd114813 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -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):