Changeset 6764d9cf7f48f1dd5cf0754cf8785031aa135323

Show
Ignore:
Timestamp:
03/12/09 11:23:20 (3 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
23ad51b105f191c931f4cf908dfe28c07e4f3876
Parents:
6c3eebceaa423859e02677bd655b19aaa0f77242
git-author:
Aleksandar Krsteski <alekrsteski@…> (02/25/09 20:46:31)
git-committer:
Lincoln de Sousa <lincoln@…> (03/12/09 11:23:20)
Message:

Fix close in tab context menu.

Close menu item in tab context menu was not working because
on_close_activate event handler was missing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/guake.py

    r6c3eebc r6764d9c  
    871871        self.set_terminal_focus() 
    872872 
     873    def on_close_activate(self, *args): 
     874        """Tab context menu close handler 
     875        """ 
     876        tabs = self.tabs.get_children() 
     877        pagepos = tabs.index(self.selected_tab) 
     878        self.delete_tab(pagepos) 
     879 
    873880    # -- tab related functions -- 
    874881