Changeset 9599
- Timestamp:
- 05/09/08 00:09:43 (7 months ago)
- Files:
-
- 1 modified
-
trunk/src/roster_window.py (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/roster_window.py
r9598 r9599 742 742 743 743 744 #FIXME: Better never even remove.... 744 #FIXME: 745 # We need to define a generic way to keep contacts in roster 746 # as long as they have pending events or as we 747 # still chat with them 745 748 def _readd_contact_to_roster_if_needed(self, contact, account): 746 # FIXME What am I REALLY needed for747 749 need_readd = False 748 750 if len(gajim.events.get_events(account, contact.jid)): … … 1720 1722 1721 1723 def set_connecting_state(self, account): 1722 model = self.modelfilter 1723 child_model = model.get_model() 1724 IterA = self._get_account_iter(account) 1725 if IterA: 1726 child_iterA = model.convert_iter_to_child_iter(IterA) 1727 child_model[child_iterA][0] = \ 1724 child_iterA = self._get_account_iter(account, self.model) 1725 if child_iterA: 1726 self.model[child_iterA][0] = \ 1728 1727 gajim.interface.jabber_state_images['16']['connecting'] 1729 1728 if gajim.interface.systray_enabled: … … 1731 1730 1732 1731 def send_status(self, account, status, txt, auto = False, to = None): 1733 model = self.modelfilter 1734 child_model = model.get_model() 1735 iterA = self._get_account_iter(account) 1732 child_iterA = self._get_account_iter(account, self.model) 1736 1733 if status != 'offline': 1737 1734 if gajim.connections[account].connected < 2: … … 1749 1746 passphrase, save = w.run() 1750 1747 if passphrase == -1: 1751 if iterA: 1752 child_iterA = model.convert_iter_to_child_iter(iterA) 1753 child_model[child_iterA][0] = gajim.interface.jabber_state_images[ 1748 if child_iterA: 1749 self.model[child_iterA][0] = gajim.interface.jabber_state_images[ 1754 1750 '16']['offline'] 1755 1751 if gajim.interface.systray_enabled: … … 2054 2050 gajim.events.add_event(account, fjid, event) 2055 2051 if popup: 2056 # FIXME: What is happening here.2057 # What does "OR he is not in the roster at all" mean2058 2052 if not ctrl: 2059 2053 gajim.interface.new_chat(contact, account, \ … … 2061 2055 if path and not self.dragging and gajim.config.get( 2062 2056 'scroll_roster_to_last_message'): 2063 # we curently see contact in our roster OR he 2064 # is not in the roster at all. 2057 # we curently see contact in our roster 2065 2058 # show and select his line in roster 2066 2059 # do not change selection while DND'ing … … 3024 3017 if x > x_min and x < x_min + 27 and type_ == 'contact' and \ 3025 3018 model.iter_has_child(titer): 3026 # FIXME: Expand all meta contacts or only the current one?3027 #account = model[path][C_ACCOUNT].decode('utf-8')3028 #jid = model[path][C_JID].decode('utf-8')3029 # first cell in 1st column (the arrow SINGLE clicked)3030 #iters = self._get_contact_iter(jid, account)3031 #for titer in iters:3032 # path = model.get_path(titer)3033 3019 if (self.tree.row_expanded(path)): 3034 3020 self.tree.collapse_row(path) … … 3049 3035 3050 3036 elif type_ == 'contact' and x > x_min and x < x_min + 27: 3051 # FIXME: Expand all meta contacts or only the current one?3052 #account = model[path][C_ACCOUNT].decode('utf-8')3053 #jid = model[path][C_JID].decode('utf-8')3054 # first cell in 1st column (the arrow SINGLE clicked)3055 #iters = self._get_contact_iter(jid, account)3056 #for titer in iters:3057 # path = model.get_path(titer)3058 3037 if (self.tree.row_expanded(path)): 3059 3038 self.tree.collapse_row(path) … … 3975 3954 def set_account_status_icon(self, account): 3976 3955 status = gajim.connections[account].connected 3977 model = self.modelfilter 3978 child_model = model.get_model() 3979 iterA = self._get_account_iter(account) 3980 if not iterA: 3981 return 3982 child_iterA = model.convert_iter_to_child_iter(iterA) 3956 child_iterA = self._get_account_iter(account, self.model) 3957 if not child_iterA: 3958 return 3983 3959 if not self.regroup: 3984 3960 show = gajim.SHOW_LIST[status] 3985 3961 else: # accounts merged 3986 3962 show = helpers.get_global_show() 3987 child_model[child_iterA][C_IMG] = gajim.interface.jabber_state_images['16'][show]3963 self.model[child_iterA][C_IMG] = gajim.interface.jabber_state_images['16'][show] 3988 3964 3989 3965 ################################################################################ … … 4026 4002 4027 4003 def change_roster_style(self, option): 4028 model = self.modelfilter 4029 child_model = model.get_model() 4030 child_model.foreach(self._change_style, option) 4004 self.model.foreach(self._change_style, option) 4031 4005 for win in gajim.interface.msg_win_mgr.windows(): 4032 4006 win.repaint_themed_widgets()
