add another ugly override for non-gnome-terminal gconf setting. this time it's focus

This commit is contained in:
Chris Jones 2008-04-07 22:46:26 +01:00
parent 4991b0ae21
commit 41ab710fbe
1 changed files with 4 additions and 1 deletions

View File

@ -65,8 +65,8 @@ class TerminatorConfig:
dbg (" TConfig: got: '%s' from a '%s'"%(val, source.type)) dbg (" TConfig: got: '%s' from a '%s'"%(val, source.type))
return (val) return (val)
except: except:
dbg (" TConfig: no value found in '%s'."%source.type)
pass pass
dbg (" TConfig: Out of sources") dbg (" TConfig: Out of sources")
raise (AttributeError) raise (AttributeError)
@ -206,6 +206,9 @@ class TerminatorConfValuestoreGConf (TerminatorConfValuestore):
else: else:
value = self.client.get ('%s/%s'%(self.profile, key)) value = self.client.get ('%s/%s'%(self.profile, key))
if key == 'focus':
value = self.client.get ('/apps/metacity/general/focus_mode')
if value: if value:
funcname = "get_" + self.defaults[key][0].__name__ funcname = "get_" + self.defaults[key][0].__name__
# Special case for str # Special case for str