From e20945ae1b9086083a54df2fe3d46e4c9faa97b7 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 26 Jan 2006 19:37:13 +0000 Subject: [PATCH] rm commented out code and improve docstring to describe new var so we remember what it is about after 3 weeks ;) --- src/roster_window.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 665c035bf..054eae7e4 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -154,7 +154,9 @@ class RosterWindow: self.draw_contact(jid, account) def add_contact_to_roster(self, jid, account, force = False): - '''Add a contact to the roster and add groups if they aren't in roster''' + '''Add a contact to the roster and add groups if they aren't in roster + force is about force to add it, even if it is offline and show offline + is False, because it has online children, so we need to show it''' showOffline = gajim.config.get('showoffline') contact = gajim.contacts.get_first_contact_from_jid(account, jid) if not contact: @@ -2821,12 +2823,6 @@ _('If "%s" accepts this request you will know his or her status.') % jid) showOffline) # columns -# col = gtk.TreeViewColumn() -# render_image = cell_renderer_image.CellRendererImage(0, 0) -# col.pack_start(render_image, expand = False) -# col.add_attribute(render_image, 'image', C_IMG) -# self.tree.append_column(col) -# self.tree.set_expander_column(col) # this col has two cells: first one img, second one text col = gtk.TreeViewColumn()