changeset cbcb30a77ac6 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=cbcb30a77ac6 description: fix completion dict in history window. see #5564
diffstat:
src/gtkgui_helpers.py | 4 ++-- src/history_window.py | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-)
diffs (46 lines):
diff -r 7bab6bd269ea -r cbcb30a77ac6 src/gtkgui_helpers.py --- a/src/gtkgui_helpers.py Fri Jan 15 20:15:59 2010 +0100 +++ b/src/gtkgui_helpers.py Fri Jan 29 22:29:25 2010 +0100 @@ -73,11 +73,11 @@ liststore = gtk.ListStore(gtk.gdk.Pixbuf, str)
render_pixbuf = gtk.CellRendererPixbuf() - completion.pack_start(render_pixbuf, expand = False) + completion.pack_start(render_pixbuf, expand=False) completion.add_attribute(render_pixbuf, 'pixbuf', 0)
render_text = gtk.CellRendererText() - completion.pack_start(render_text, expand = True) + completion.pack_start(render_text, expand=True) completion.add_attribute(render_text, 'text', 1) completion.set_property('text_column', 1) completion.set_model(liststore) diff -r 7bab6bd269ea -r cbcb30a77ac6 src/history_window.py --- a/src/history_window.py Fri Jan 15 20:15:59 2010 +0100 +++ b/src/history_window.py Fri Jan 29 22:29:25 2010 +0100 @@ -145,14 +145,13 @@
# Add all jids in logs.db: db_jids = gajim.logger.get_jids_in_db() - self.completion_dict = dict.fromkeys(db_jids) + completion_dict = dict.fromkeys(db_jids)
self.accounts_seen_online = gajim.contacts.get_accounts()[:]
# Enhance contacts of online accounts with contact. Needed for mapping below for account in self.accounts_seen_online: - self.completion_dict.update( - helpers.get_contact_dict_for_account(account)) + completion_dict.update(helpers.get_contact_dict_for_account(account))
muc_active_img = gtkgui_helpers.load_icon('muc_active') contact_img = gajim.interface.jabber_state_images['16']['online'] @@ -171,7 +170,7 @@ # Warning : This for is time critical with big DB for key in keys: completed = key - contact = self.completion_dict[completed] + contact = completion_dict[completed] if contact: info_name = contact.get_shown_name() info_completion = info_name