From 818bcecc7ce816f5ec273f88d4bbc92d303cfbc0 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 8 Jan 2017 17:48:44 +0100 Subject: 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 --- font-viewer/font-model.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'font-viewer/font-model.c') 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"); -- cgit v1.2.1