Fixes font lookups for people with unpopulated gconf database (i.e. KDE)
This commit is contained in:
parent
d8228434e9
commit
4af300ee1e
|
@ -368,7 +368,10 @@ class Config(object):
|
||||||
|
|
||||||
value = self.gconf.get(
|
value = self.gconf.get(
|
||||||
'/desktop/gnome/interface/font_name')
|
'/desktop/gnome/interface/font_name')
|
||||||
|
if value:
|
||||||
self.system_prop_font = value.get_string()
|
self.system_prop_font = value.get_string()
|
||||||
|
else:
|
||||||
|
self.system_prop_font = "Sans 10"
|
||||||
self.gconf.notify_add(
|
self.gconf.notify_add(
|
||||||
'/desktop/gnome/interface/font_name',
|
'/desktop/gnome/interface/font_name',
|
||||||
self.on_gconf_notify)
|
self.on_gconf_notify)
|
||||||
|
@ -386,7 +389,10 @@ class Config(object):
|
||||||
|
|
||||||
value = self.gconf.get(
|
value = self.gconf.get(
|
||||||
'/desktop/gnome/interface/monospace_font_name')
|
'/desktop/gnome/interface/monospace_font_name')
|
||||||
|
if value:
|
||||||
self.system_mono_font = value.get_string()
|
self.system_mono_font = value.get_string()
|
||||||
|
else:
|
||||||
|
self.system_mono_font = "Mono 10"
|
||||||
self.gconf.notify_add(
|
self.gconf.notify_add(
|
||||||
'/desktop/gnome/interface/monospace_font_name',
|
'/desktop/gnome/interface/monospace_font_name',
|
||||||
self.on_gconf_notify)
|
self.on_gconf_notify)
|
||||||
|
|
Loading…
Reference in New Issue