[gnome-font-viewer] view: move fontconfig initialization to main()



commit 279f3aab8d3b167f81b9fa612b1295e81d101de4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 9 12:51:12 2014 -0700

    view: move fontconfig initialization to main()

 src/font-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/font-view.c b/src/font-view.c
index a22786f..41086db 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -879,9 +879,6 @@ font_view_application_class_init (FontViewApplicationClass *klass)
 static GApplication *
 font_view_application_new (void)
 {
-    if (!FcInit ())
-        g_critical ("Can't initialize fontconfig library");
-
     return g_object_new (FONT_VIEW_TYPE_APPLICATION,
                          "application-id", "org.gnome.font-viewer",
                          "flags", G_APPLICATION_HANDLES_OPEN,
@@ -899,6 +896,9 @@ main (int argc,
     bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
     textdomain (GETTEXT_PACKAGE);
 
+    if (!FcInit ())
+        g_critical ("Can't initialize fontconfig library");
+
     app = font_view_application_new ();
     retval = g_application_run (app, argc, argv);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]