Ticket #248: 0001-Window-grabs-focus-after-pressing-the-add-tab-button.patch

File 0001-Window-grabs-focus-after-pressing-the-add-tab-button.patch, 1.0 KB (added by pingou, 21 months ago)
  • src/guake.py

    From a986dd1bbe76256da5fd38c984f7c955e1129e04 Mon Sep 17 00:00:00 2001
    From: pingou <pingou@pingoured.fr>
    Date: Tue, 31 Aug 2010 09:40:55 +0200
    Subject: [PATCH] Window grabs focus after pressing the add tab button
    
    ---
     src/guake.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/guake.py b/src/guake.py
    index 40e688f..bd40858 100644
    a b  
    11191119        """Adds a new tab to the terminal notebook. 
    11201120        """ 
    11211121        box = GuakeTerminalBox() 
    1122         box.terminal.grab_focus() 
    11231122        box.terminal.connect('button-press-event', self.show_context_menu) 
    11241123        box.terminal.connect('child-exited', self.on_terminal_exited, box) 
    11251124        box.show() 
     
    11591158 
    11601159        self.notebook.append_page(box, None) 
    11611160        self.notebook.set_current_page(self.notebook.page_num(box)) 
     1161        box.terminal.grab_focus() 
    11621162        self.load_config() 
    11631163 
    11641164    def delete_tab(self, pagepos, kill=True):