(trunk-1584) Fixes font lookups for people with unpopulated gconf database (i.e. KDE)

This commit is contained in:
Stephen Boddy 2015-08-02 00:50:24 +02:00
parent 2deebe40bf
commit d93e104da8
1 changed files with 8 additions and 2 deletions

View File

@ -362,7 +362,10 @@ class Config(object):
value = self.gconf.get(
'/desktop/gnome/interface/font_name')
if value:
self.system_prop_font = value.get_string()
else:
self.system_prop_font = "Sans 10"
self.gconf.notify_add(
'/desktop/gnome/interface/font_name',
self.on_gconf_notify)
@ -380,7 +383,10 @@ class Config(object):
value = self.gconf.get(
'/desktop/gnome/interface/monospace_font_name')
if value:
self.system_mono_font = value.get_string()
else:
self.system_mono_font = "Mono 10"
self.gconf.notify_add(
'/desktop/gnome/interface/monospace_font_name',
self.on_gconf_notify)