Subdomain Posts
Python | 22 hours ago
None | 22 hours ago
None | 1 day ago
None | 2 days ago
None | 7 days ago
None | 18 days ago
Diff | 21 days ago
Diff | 21 days ago
None | 25 days ago
XML | 25 days ago
Recent Posts
None | 1 min ago
Bash | 1 min ago
None | 1 min ago
PHP | 1 min ago
None | 1 min ago
None | 1 min ago
Prolog | 2 min ago
None | 2 min ago
None | 2 min ago
None | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By solanum on the 7th of Feb 2010 11:47:00 AM Download | Raw | Embed | Report
  1. diff -Naur gajim-0.13.2/src/roster_window.py gajim-0.13.2-patched/src/roster_window.py
  2. --- gajim-0.13.2/src/roster_window.py   2009-12-30 12:20:22.000000000 +0100
  3. +++ gajim-0.13.2-patched/src/roster_window.py   2010-02-07 12:44:19.767539312 +0100
  4.  -1565,6 +1565,15 @@
  5.                 if type_ == 'group':
  6.                         group = jid
  7.                         if group == _('Transports'):
  8. +                               if self.regroup:
  9. +                                       accounts = gajim.contacts.get_accounts()
  10. +                               else:
  11. +                                       accounts = [account]
  12. +                               for _acc in accounts:
  13. +                                       for contact in gajim.contacts.iter_contacts(_acc):
  14. +                                               if group in contact.get_shown_groups():
  15. +                                                       if self.contact_has_pending_roster_events(contact, _acc):
  16. +                                                               return True
  17.                                 return gajim.config.get('show_transports_group') and \
  18.                                         (gajim.account_is_connected(account) or \
  19.                                         gajim.config.get('showoffline'))
  20.  -1611,9 +1620,12 @@
  21.                                         jid)
  22.                                 return self.contact_is_visible(contact, account)
  23.                 if type_ == 'agent':
  24. -                       return gajim.config.get('show_transports_group') and \
  25. +                       contact = gajim.contacts.get_contact_with_highest_priority(account,
  26. +                               jid)
  27. +                       return self.contact_has_pending_roster_events(contact, account) or \
  28. +                               (gajim.config.get('show_transports_group') and \
  29.                                 (gajim.account_is_connected(account) or \
  30. -                               gajim.config.get('showoffline'))
  31. +                               gajim.config.get('showoffline')))
  32.                 return True
  33.  
  34.         def _compareIters(self, model, iter1, iter2, data=None):
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: