[recipes] Initialize gd types explicitly



commit 8aeb3f97e7c7129881a02e6a4b62ae7c28e8f773
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 18 21:34:56 2017 -0500

    Initialize gd types explicitly
    
    That appears to be necessary.

 src/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index b85cd66..7275d2a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,7 @@
 #include <gtk/gtk.h>
 #include <libintl.h>
 #include <locale.h>
+#include <libgd/gd.h>
 
 #include "gr-app.h"
 #include "gr-cuisine-page.h"
@@ -48,6 +49,7 @@ main (int argc, char *argv[])
         g_autoptr (GApplication) app = NULL;
         int status;
 
+        gd_ensure_types ();
         g_type_ensure (GR_TYPE_COOKING_VIEW);
         g_type_ensure (GR_TYPE_COOKING_PAGE);
         g_type_ensure (GR_TYPE_CUISINE_PAGE);


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