From b6ff1502828c6ff4985b2f3d76e87a58835bd548 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Mon, 7 Jan 2013 18:33:41 +0400 Subject: [PATCH] fix tracebacks --- src/common/contacts.py | 2 +- src/htmltextview.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/contacts.py b/src/common/contacts.py index 83d42f436..113e473ef 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -566,7 +566,7 @@ class GC_Contacts(): gc_list = self.get_gc_list() if not room_jid in gc_list: return [] - return self._rooms[room_jid].keys() + return list(self._rooms[room_jid].keys()) def get_gc_contact(self, room_jid, nick): nick_list = self.get_nick_list(room_jid) diff --git a/src/htmltextview.py b/src/htmltextview.py index 81c6c8aad..f76f3a341 100644 --- a/src/htmltextview.py +++ b/src/htmltextview.py @@ -900,7 +900,7 @@ class HtmlTextView(Gtk.TextView): def on_html_text_view_copy_clipboard(self, unused_data): clipboard = self.get_clipboard(Gdk.SELECTION_CLIPBOARD) - clipboard.set_text(self.get_selected_text()) + clipboard.set_text(self.get_selected_text(), len(self.get_selected_text())) self.emit_stop_by_name('copy-clipboard') def on_html_text_view_realized(self, unused_data):