changeset e85378e7a9ef in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=e85378e7a9ef
description: [leon] show account name in tooltip rather than in roster in
merged mode. Fixes
#7118
diffstat:
src/roster_window.py | 23 -----------------------
src/tooltips.py | 5 +++++
2 files changed, 5 insertions(+), 23 deletions(-)
diffs (48 lines):
diff -r 5295fadc4308 -r e85378e7a9ef src/roster_window.py
--- a/src/roster_window.py Sun Mar 11 19:38:44 2012 +0100
+++ b/src/roster_window.py Tue Mar 13 14:32:09 2012 +0100
@@ -1163,29 +1163,6 @@
name += i18n.paragraph_direction_mark(unicode(name))
name += u' (%d)' % nb_connected_contact
- # show (account_name) if there are 2 contact with same jid
- # in merged mode
- if self.regroup:
- add_acct = False
- # look through all contacts of all accounts
- for account_ in gajim.connections:
- # useless to add account name
- if account_ == account:
- continue
- for jid_ in gajim.contacts.get_jid_list(account_):
- contact_ = gajim.contacts.get_first_contact_from_jid(
- account_, jid_)
- if contact_.get_shown_name() == contact.get_shown_name() \
- and (jid_, account_) != (jid, account):
- add_acct = True
- break
- if add_acct:
- # No need to continue in other account
- # if we already found one
- break
- if add_acct:
- name += ' (' + account + ')'
-
# add status msg, if not empty, under contact name in
# the treeview
if contact.status and gajim.config.get('show_status_msgs_in_roster'):
diff -r 5295fadc4308 -r e85378e7a9ef src/tooltips.py
--- a/src/tooltips.py Sun Mar 11 19:38:44 2012 +0100
+++ b/src/tooltips.py Tue Mar 13 14:32:09 2012 +0100
@@ -498,6 +498,11 @@
name_markup = u'<span weight="bold">' + \
gobject.markup_escape_text(prim_contact.get_shown_name())\
+ '</span>'
+ if gajim.config.get('mergeaccounts'):
+ name_markup += u" <span foreground='#888A85'>(" + \
+ gobject.markup_escape_text(prim_contact.account.name) \
+ + ')</span>'
+
if self.account and helpers.jid_is_blocked(self.account,
prim_contact.jid):
name_markup += _(' [blocked]')
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits