unsigned seen;
};
+#ifdef HAVE_PGTK
+/* The cairo font_options as obtained using gsettings. */
+static cairo_font_options_t *font_options;
+#endif
+
#ifdef HAVE_GSETTINGS
#define GSETTINGS_SCHEMA "org.gnome.desktop.interface"
#define GSETTINGS_TOOL_BAR_STYLE "toolbar-style"
static GSettings *gsettings_client;
-#ifdef HAVE_PGTK
-
-/* The cairo font_options as obtained using gsettings. */
-static cairo_font_options_t *font_options;
-
static bool
xg_settings_key_valid_p (GSettings *settings, const char *key)
{
#endif
}
+#ifdef HAVE_PGTK
/* Store an event for re-rendering of the fonts. */
static void
store_font_options_changed (void)
cairo_font_options_t *
xsettings_get_font_options (void)
{
- return cairo_font_options_copy (font_options);
+ if (font_options != NULL)
+ return cairo_font_options_copy (font_options);
+ else
+ /* GSettings is not configured. */
+ return cairo_font_options_create ();
}
#endif