Changeset 9761

Show
Ignore:
Timestamp:
06/05/08 17:09:17 (6 months ago)
Author:
jim++
Message:

Regroup window.present() calls. See #3908.

Location:
trunk/src
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chat_control.py

    r9747 r9761  
    20402040                gajim.events.remove_events(self.account, self.get_full_jid(), 
    20412041                        types = ['printed_' + self.type_id, self.type_id]) 
    2042                 # remove all register handlers on wigets, created by self.xml 
     2042                # remove all register handlers on widgets, created by self.xml 
    20432043                # to prevent circular references among objects 
    20442044                for i in self.handlers.keys(): 
  • trunk/src/gajim.py

    r9755 r9761  
    25232523                if w: 
    25242524                        w.set_active_tab(ctrl) 
    2525                         w.window.present() 
    25262525                        w.window.window.focus() 
    25272526                        # Using isinstance here because we want to catch all derived types 
     
    27652764                        gc_ctrl = self.msg_win_mgr.get_gc_control(room_jid, account) 
    27662765                        win = gc_ctrl.parent_win 
    2767                         win.window.present() 
    27682766                        win.set_active_tab(gc_ctrl) 
    27692767                        dialogs.ErrorDialog(_('You are already in group chat %s') % room_jid) 
     
    27932791                        gc_control = self.msg_win_mgr.get_gc_control(room_jid, account) 
    27942792                        gc_control.parent_win.set_active_tab(gc_control) 
    2795                         gc_control.parent_win.window.present() 
    27962793                gajim.connections[account].join_gc(nick, room_jid, password) 
    27972794                if password: 
     
    28932890                mw = session.control.parent_win 
    28942891                mw.set_active_tab(session.control) 
    2895                 mw.window.present() 
    28962892                # For JEP-0172 
    28972893                if added_to_roster: 
     
    29312927                        for ctrl in win.get_controls(fjid, account): 
    29322928                                ctrl.got_disconnected() 
    2933  
    2934                 win.window.present() 
    29352929 
    29362930################################################################################                 
  • trunk/src/groupchat_control.py

    r9760 r9761  
    20772077 
    20782078                win.set_active_tab(ctrl) 
    2079                 win.window.present() 
    20802079 
    20812080                return ctrl 
  • trunk/src/message_window.py

    r9757 r9761  
    449449                ctrl_page = self.notebook.page_num(ctrl.widget) 
    450450                self.notebook.set_current_page(ctrl_page) 
     451                self.window.present() 
    451452 
    452453        def remove_tab(self, ctrl, method, reason = None, force = False): 
  • trunk/src/roster_window.py

    r9743 r9761  
    11571157                        win = gajim.interface.msg_win_mgr.get_window(room_jid, account) 
    11581158                        ctrl = gajim.interface.msg_win_mgr.get_gc_control(room_jid, account) 
    1159                         win.window.present() 
    11601159                        win.set_active_tab(ctrl) 
    11611160                        dialogs.ErrorDialog(_('You are already in group chat %s') % room_jid) 
     
    11861185                        gc_control = gc_win.get_gc_control(room_jid, account) 
    11871186                        gc_win.set_active_tab(gc_control) 
    1188                         gc_win.window.present() 
    11891187                gajim.connections[account].join_gc(nick, room_jid, password) 
    11901188                if password: 
     
    28142812                mw.new_tab(ctrl) 
    28152813                mw.set_active_tab(ctrl) 
    2816                 mw.window.present() 
    28172814                del gajim.interface.minimized_controls[account][jid] 
    28182815 
  • trunk/src/systray.py

    r9501 r9761  
    110110                        gajim.interface.msg_win_mgr.get_window(jid, account).set_active_tab( 
    111111                                jid, account) 
    112                         gajim.interface.msg_win_mgr.get_window(jid, account).window.present() 
    113112                elif contact: 
    114113                        gajim.interface.new_chat(contact, account)