Changeset 6324

Show
Ignore:
Timestamp:
05/11/06 23:46:55 (3 years ago)
Author:
jim++
Message:

For GC, draw banner AFTER we change status of control

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r6318 r6324  
    832832                show = array[1] 
    833833                status = array[2] 
     834 
     835                # Get the window and control for the updated status, this may be a PrivateChatControl 
     836                control = self.msg_win_mgr.get_control(room_jid, account) 
     837                if control: 
     838                        control.chg_contact_status(nick, show, status, array[4], array[5], array[6], 
     839                                                array[7], array[8], array[9], array[10]) 
     840                        # Find any PM chat through this room, and tell it to update. 
     841                        pm_control = self.msg_win_mgr.get_control(fjid, account) 
     842                        if pm_control: 
     843                                pm_control.parent_win.redraw_tab(pm_control) 
     844                        if self.remote_ctrl: 
     845                                self.remote_ctrl.raise_signal('GCPresence', (account, array)) 
     846 
    834847                # print status in chat window and update status/GPG image 
    835848                if self.msg_win_mgr.has_window(fjid, account): 
     
    844857                        ctrl.draw_banner() 
    845858 
    846                 # Get the window and control for the updated status, this may be a PrivateChatControl 
    847                 control = self.msg_win_mgr.get_control(room_jid, account) 
    848                 if control: 
    849                         control.chg_contact_status(nick, show, status, array[4], array[5], array[6], 
    850                                                 array[7], array[8], array[9], array[10]) 
    851                         # Find any PM chat through this room, and tell it to update. 
    852                         pm_control = self.msg_win_mgr.get_control(fjid, account) 
    853                         if pm_control: 
    854                                 pm_control.parent_win.redraw_tab(pm_control) 
    855                         if self.remote_ctrl: 
    856                                 self.remote_ctrl.raise_signal('GCPresence', (account, array)) 
    857859 
    858860        def handle_event_gc_msg(self, account, array):