fix tracebacks

This commit is contained in:
Denis Fomin 2013-01-07 18:33:41 +04:00
parent d4979a0435
commit b6ff150282
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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):