Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/sugar-session9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/sugar-session b/bin/sugar-session
index f06479d..ef22db0 100644
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -207,6 +207,13 @@ def bootstrap():
if sys.modules.has_key('xklavier'):
gobject.idle_add(setup_keyboard_cb)
+def set_fonts():
+ client = gconf.client_get_default()
+ face = client.get_string('/desktop/sugar/font/default_face')
+ size = client.get_float('/desktop/sugar/font/default_size')
+ settings = gtk.settings_get_default()
+ settings.set_property("gtk-font-name", "%s %f" % (face, size))
+
def main():
cleanup_logs()
logger.start('shell')
@@ -219,6 +226,8 @@ def main():
if timezone is not None and timezone:
os.environ['TZ'] = timezone
+ set_fonts()
+
intro.check_profile()
start_ui_service()