[Sugar-devel] F11 for XO1 - Fonts

Daniel Drake dsd at laptop.org
Sun Aug 23 02:16:07 EDT 2009


2009/8/18 Tomeu Vizoso <tomeu at sugarlabs.org>:
> Yes, I would be happiest if we did the same that GNOME does. Do you
> know how widgets change the font size in response of changes to the
> gconf setting?

It's done with xsettings. The property name is Gtk/FontName. All GTK+
apps automatically listen for it (see gdk/x11/gdksettings.c in GTK+
source code as a starting point).

In GNOME, gnome-settings-daemon watches the gconf key for changes and
then generates xsettings/XChangeProperty calls once a change is
detected.

I've now finished the feature page for this:
http://wiki.sugarlabs.org/go/Features/Font_configuration

Daniel


More information about the Sugar-devel mailing list