Changeset 9847 for trunk/src/gajim.py
- Timestamp:
- 06/27/08 01:37:12 (5 months ago)
- Files:
-
- 1 modified
-
trunk/src/gajim.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gajim.py
r9846 r9847 1035 1035 1036 1036 # show avatar in chat 1037 ctrls = []1038 1037 if resource and self.msg_win_mgr.has_window(fjid, account): 1039 1038 win = self.msg_win_mgr.get_window(fjid, account) 1040 ctrl s = win.get_controls(fjid, account)1039 ctrl = win.get_control(fjid, account) 1041 1040 elif self.msg_win_mgr.has_window(jid, account): 1042 1041 win = self.msg_win_mgr.get_window(jid, account) 1043 ctrls = win.get_controls(jid, account) 1044 1045 for ctrl in ctrls: 1046 if ctrl.type_id != message_control.TYPE_GC: 1047 ctrl.show_avatar() 1042 ctrl = win.get_control(jid, account) 1043 1044 if ctrl and ctrl.type_id != message_control.TYPE_GC: 1045 ctrl.show_avatar() 1048 1046 1049 1047 # Show avatar in roster or gc_roster … … 2606 2604 2607 2605 if win: 2608 ctrls = win.get_controls(fjid, account) 2609 if ctrls: 2610 ctrl = ctrls[0] 2606 ctrl = win.get_control(fjid, account) 2611 2607 2612 2608 if not ctrl: … … 2621 2617 2622 2618 if gajim.connections[account].is_zeroconf and \ 2623 gajim.connections[account].status in ('offline', 'invisible'): 2624 for ctrl in win.get_controls(fjid, account): 2619 gajim.connections[account].status in ('offline', 'invisible'): 2620 ctrl = win.get_control(fjid, account) 2621 if ctrl: 2625 2622 ctrl.got_disconnected() 2626 2623
