Commit f3a18017 authored by Behdad Esfahbod's avatar Behdad Esfahbod Committed by Behdad Esfahbod

Only initialize fontconfig when starting up. A cache update is redundant

2008-11-05  Behdad Esfahbod  <behdad@gnome.org>

        * plugins/xsettings/fontconfig-monitor.c (fontconfig_cache_init):
        * plugins/xsettings/fontconfig-monitor.h:
        * plugins/xsettings/gsd-xsettings-manager.c
        (start_fontconfig_monitor):  Only initialize fontconfig when starting
        up.  A cache update is redundant there. (bug #559550)

svn path=/trunk/; revision=592
parent 04cc386d
2008-11-05 Behdad Esfahbod <behdad@gnome.org>
* plugins/xsettings/fontconfig-monitor.c (fontconfig_cache_init):
* plugins/xsettings/fontconfig-monitor.h:
* plugins/xsettings/gsd-xsettings-manager.c
(start_fontconfig_monitor): Only initialize fontconfig when starting
up. A cache update is redundant there. (bug #559550)
2008-11-05 Behdad Esfahbod <behdad@gnome.org>
* plugins/keyboard/gsd-keyboard-manager.c (start_keyboard_idle_cb),
......
......@@ -33,6 +33,12 @@ stuff_changed (GFileMonitor *monitor,
GFileMonitorEvent event_type,
gpointer handle);
void
fontconfig_cache_init (void)
{
FcInit ();
}
gboolean
fontconfig_cache_update (void)
{
......
......@@ -25,6 +25,7 @@
G_BEGIN_DECLS
void fontconfig_cache_init (void);
gboolean fontconfig_cache_update (void);
typedef struct _fontconfig_monitor_handle fontconfig_monitor_handle_t;
......
......@@ -583,7 +583,7 @@ start_fontconfig_monitor (GnomeXSettingsManager *manager)
{
gnome_settings_profile_start (NULL);
fontconfig_cache_update ();
fontconfig_cache_init ();
g_idle_add ((GSourceFunc) start_fontconfig_monitor_idle_cb, manager);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment