mirror of
https://github.com/Guake/guake.git
synced 2025-10-26 11:27:13 +00:00
Calling the hide() method when closing main window (Closes: #229)
This commit is contained in:
parent
9896803477
commit
092215bd64
@ -599,6 +599,13 @@ class Guake(SimpleGladeApp):
|
||||
self.get_widget('tab-menu').connect('hide', hide_context_menu)
|
||||
self.window.connect('focus-out-event', self.on_window_losefocus)
|
||||
|
||||
# Handling the delete-event of the main window to avoid
|
||||
# problems when closing it.
|
||||
def destroy(*args):
|
||||
self.hide()
|
||||
return True
|
||||
self.window.connect('delete-event', destroy)
|
||||
|
||||
# Flag to completly disable losefocus hiding
|
||||
self.disable_losefocus_hiding = False
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user