summaryrefslogtreecommitdiff
path: root/font-viewer/font-model.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-01-08 17:48:44 +0100
committerraveit65 <[email protected]>2017-02-17 12:28:22 +0100
commit818bcecc7ce816f5ec273f88d4bbc92d303cfbc0 (patch)
treeeb1187c75811c3362dbc2d2eacfd64fe2eba8454 /font-viewer/font-model.c
parentc67f9e98c102a579271dcf549db6ef5ae600901a (diff)
downloadmate-control-center-818bcecc7ce816f5ec273f88d4bbc92d303cfbc0.tar.bz2
mate-control-center-818bcecc7ce816f5ec273f88d4bbc92d303cfbc0.tar.xz
Fontviewer: move FontConfig init/deinit to the application class
Safely init FontConfig once for the whole app, and de-init it when quitting. taken from: https://git.gnome.org/browse/gnome-font-viewer/commit/?id=beec585
Diffstat (limited to 'font-viewer/font-model.c')
-rw-r--r--font-viewer/font-model.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/font-viewer/font-model.c b/font-viewer/font-model.c
index 6681b842..9a365527 100644
--- a/font-viewer/font-model.c
+++ b/font-viewer/font-model.c
@@ -440,8 +440,6 @@ font_view_model_init (FontViewModel *self)
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, FONT_VIEW_TYPE_MODEL, FontViewModelPrivate);
- if (!FcInit())
- g_critical ("Can't initialize fontconfig library");
if (FT_Init_FreeType (&self->priv->library) != FT_Err_Ok)
g_critical ("Can't initialize FreeType library");