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
This commit is contained in:
parent
6ab10d5fe5
commit
9967408dd6
|
@ -402,6 +402,14 @@ class Groupchat_window(chat.Chat):
|
||||||
self.plugin.windows[self.account]['infos'][jid] = \
|
self.plugin.windows[self.account]['infos'][jid] = \
|
||||||
dialogs.Vcard_window(jid, self.plugin,
|
dialogs.Vcard_window(jid, self.plugin,
|
||||||
self.account, True)
|
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)
|
gajim.connections[self.account].request_vcard(jid)
|
||||||
|
|
||||||
#FIXME: we need the resource but it's not saved
|
#FIXME: we need the resource but it's not saved
|
||||||
|
|
Loading…
Reference in New Issue