[epiphany] main: Init libhandy



commit 701b6aa81ce8e926cff2364db622bd9258a80368
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Nov 27 06:59:17 2018 +0100

    main: Init libhandy
    
    This will allow to use libhandy's translations and to init its types.

 src/ephy-main.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 9ce4e21f4..18bb07e37 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -36,6 +36,8 @@
 #include <glib/gi18n.h>
 #include <glib-unix.h>
 #include <gtk/gtk.h>
+#define HANDY_USE_UNSTABLE_API
+#include <handy.h>
 #include <libnotify/notify.h>
 #include <libxml/xmlreader.h>
 #include <libxml/xmlversion.h>
@@ -419,6 +421,8 @@ main (int   argc,
     gtk_window_set_default_icon_name ("org.gnome.Epiphany");
   }
 
+  hdy_init (&argc, &argv);
+
   _ephy_shell_create_instance (mode);
 
   ctx = ephy_shell_startup_context_new (startup_flags,


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