Changeset 9840
- Timestamp:
- 06/25/08 15:15:05 (5 months ago)
- Files:
-
- 1 modified
-
trunk/src/roster_window.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/roster_window.py
r9839 r9840 490 490 # Remove childs first then big brother 491 491 family_in_roster = False 492 big_brother_jid = None 492 493 for data in nearby_family: 493 494 _account = data['account'] … … 522 523 if not family_in_roster: 523 524 return False 524 525 526 assert old_big_jid, 'No Big Brother in nearby family % (Family: %)' % \ 527 (nearby_family, family) 525 528 iters = self._get_contact_iter(old_big_jid, old_big_account, 526 529 old_big_contact, self.model) … … 666 669 for group in contact.get_shown_groups(): 667 670 self.draw_group(group, account) 671 self._adjust_group_expand_collapse_state(group, account) 668 672 self.draw_account(account) 669 673 … … 729 733 contact = gajim.contacts.get_contact_with_highest_priority(account, jid) 730 734 if contact is None: 735 # Do not show gc if we are disconnected and minimize it 736 if gajim.account_is_connected(account): 737 show = 'online' 738 else: 739 show = 'offline' 740 status = '' 731 741 contact = gajim.contacts.create_contact(jid = jid, name = jid, 732 groups = [_('Groupchats')], show = 'online',742 groups = [_('Groupchats')], show = show, 733 743 status = status, sub = 'none') 734 744 gajim.contacts.add_contact(account, contact) … … 736 746 else: 737 747 contact.show = 'online' 738 self.draw_co ntact(jid, account)748 self.draw_completely_and_show_if_needed(jid, account) 739 749 return contact 740 750 … … 923 933 text += ' (%s/%s)' % (repr(nbr_on), repr(nbr_total)) 924 934 925 self.model[child_iter][C_NAME] = gobject.markup_escape_text(text)935 self.model[child_iter][C_NAME] = text 926 936 return False 927 937 … … 1873 1883 c.is_transport())]: 1874 1884 self.chg_contact_status(contact, 'offline', '', account) 1875 # Remove SelfContact from roster and remove it.1876 # It might be gone when we return1877 self_jid = gajim.get_jid_from_account(account)1878 self.remove_contact(self_jid, account, backend = True)1879 1885 self.actions_menu_needs_rebuild = True 1880 1886 self.update_status_combobox() … … 2645 2651 del gajim.interface.minimized_controls[account][jid] 2646 2652 ctrl.shutdown() 2647 2648 2653 self.remove_groupchat(jid, account) 2649 2654
