define _hidden on start

This commit is contained in:
Chris James 2008-08-01 19:22:28 -05:00
parent 58747628a5
commit 66c1de7a43
1 changed files with 6 additions and 4 deletions

View File

@ -95,6 +95,7 @@ class Terminator:
self._maximised = False self._maximised = False
self._fullscreen = False self._fullscreen = False
self._f11_modifier = False self._f11_modifier = False
self._hidden = False
self.term_list = [] self.term_list = []
stores = [] stores = []
@ -195,19 +196,20 @@ class Terminator:
"""Show the terminator window""" """Show the terminator window"""
# restore window position # restore window position
self.window.move(self.pos[0],self.pos[1]) self.window.move(self.pos[0],self.pos[1])
self.window.present() #self.window.present()
self.hidden = False self.window.show_now()
self._hidden = False
def hide(self): def hide(self):
"""Hide the terminator window""" """Hide the terminator window"""
# save window position # save window position
self.pos = self.window.get_position() self.pos = self.window.get_position()
self.window.hide() self.window.hide()
self.hidden = True self._hidden = True
def cbkeyCloak(self): def cbkeyCloak(self):
"""Callback event for show/hide keypress""" """Callback event for show/hide keypress"""
if self.hidden: if self._hidden:
self.show() self.show()
else: else:
self.hide() self.hide()