diff --git a/plugins/gtkgui/dialogs.py b/plugins/gtkgui/dialogs.py index 900a18f11..cde45dc0b 100644 --- a/plugins/gtkgui/dialogs.py +++ b/plugins/gtkgui/dialogs.py @@ -159,13 +159,20 @@ class infoUser_Window: self.xml.get_widget('label_name').set_text(user.name) self.xml.get_widget('label_id').set_text(user.jid) - self.xml.get_widget('label_resource').set_text(user.resource) self.xml.get_widget('label_sub').set_text(user.sub) self.xml.get_widget('entry_name').set_text(user.name) + resources = user.resource if not user.status: user.status = '' - self.xml.get_widget('label_status').set_text(user.show + ' : ' + \ - user.status) + stats = user.show + ' : ' + user.status + for u in self.plugin.roster.contacts[account][user.jid]: + if u.resource != user.resource: + resources += '\n' + u.resource + if not u.status: + u.status = '' + stats += '\n' + u.show + ' : ' + u.status + self.xml.get_widget('label_resource').set_text(resources) + self.xml.get_widget('label_status').set_text(stats) self.init_lists() plugin.send('ASK_VCARD', account, self.user.jid) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index c0410bc17..d4b4db258 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -1232,6 +1232,7 @@ class plugin: model = self.roster.tree.get_model() while self.queueIN.empty() == 0: ev = self.queueIN.get() + #('ROSTER', account, array) if ev[0] == 'ROSTER': self.roster.mklists(ev[2], ev[1]) self.roster.draw_roster()