Entirely fix up the previous commit, the exception wasn't working at all

This commit is contained in:
Chris Jones 2009-08-07 22:47:30 +01:00
parent b3c6e06964
commit 2ac04e20be
1 changed files with 8 additions and 4 deletions

View File

@ -361,13 +361,17 @@ class Terminator:
term.spawn_child ()
self.save_yourself ()
couldbind = False
try:
bindkey.tomboy_keybinder_bind(self.conf.keybindings['hide_window'],self.cbkeyCloak,term)
couldbind = bindkey.tomboy_keybinder_bind(self.conf.keybindings['hide_window'],self.cbkeyCloak,term)
except:
pass
if couldbind:
if hidden or self.conf.hidden:
self.hide()
except:
dbg (_("Unable to bind hide_window key"))
pass
else:
if hidden or self.conf.hidden:
self.window.iconify()
def set_handle_size (self, size):
if size in xrange (0,6):