From 9967408dd6315f4cc65ea28486c86fa4a97330bf Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 11 May 2005 18:47:09 +0000 Subject: [PATCH] temporary fix to fix #265. when we'll have a user instance for each contact in gc we won't need that, we'll use real informatino window with the first tab --- src/groupchat_window.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 75de23294..9efe87d7f 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -402,6 +402,14 @@ class Groupchat_window(chat.Chat): self.plugin.windows[self.account]['infos'][jid] = \ dialogs.Vcard_window(jid, self.plugin, self.account, True) + # FIXME: when we'll have a user for each contact, this won't be needed + # cause we'll user real information window + vcard_xml = self.plugin.windows[self.account]['infos'][jid].xml + hbuttonbox = vcard_xml.get_widget('information_hbuttonbox') + children = hbuttonbox.get_children() + hbuttonbox.remove(children[0]) + hbuttonbox.remove(children[1]) + vcard_xml.get_widget('nickname_label').set_text(jid) gajim.connections[self.account].request_vcard(jid) #FIXME: we need the resource but it's not saved