Font special case was logically very broken

This commit is contained in:
Chris Jones 2008-04-07 23:26:51 +01:00
parent be8e4cf057
commit e9b5a3dfb4
1 changed files with 6 additions and 7 deletions

View File

@ -199,16 +199,15 @@ class TerminatorConfValuestoreGConf (TerminatorConfValuestore):
value = None
dbg (' VSGConf: preparing: %s/%s'%(self.profile, key))
if key == 'font':
if self.use_system_font:
value = self.client.get ('/desktop/gnome/interface/monospace_font_name')
# FIXME: Ugly special cases we should look to fix in some other way.
if key == 'font' and self.use_system_font::
value = self.client.get ('/desktop/gnome/interface/monospace_font_name')
elif key == 'focus':
value = self.client.get ('/apps/metacity/general/focus_mode')
else:
value = self.client.get ('%s/%s'%(self.profile, key))
if key == 'focus':
value = self.client.get ('/apps/metacity/general/focus_mode')
if value:
funcname = "get_" + self.defaults[key][0].__name__
# Special case for str