Commit 4cc59e28 authored by Adrien Plazas's avatar Adrien Plazas Committed by Guido Gunther
Browse files

main: Explicitely load the resources in hdy_init()

This is mandatory to use resources of a static version of libhandy, and
is hence mandatory to allow to build libhandy as a static library.
parent 39c4d7c7
......@@ -5,6 +5,7 @@
#include "config.h"
#include "hdy-main-private.h"
#include <gio/gio.h>
#include <glib/gi18n.h>
static gint hdy_initialized = FALSE;
......@@ -18,6 +19,8 @@ static gint hdy_initialized = FALSE;
* sure translations for the Handy library are set up properly.
GResource *hdy_get_resource (void);
* hdy_init:
* @argc: (inout) (optional): Address of the <parameter>argc</parameter>
......@@ -42,6 +45,7 @@ hdy_init (int *argc, char ***argv)
textdomain (GETTEXT_PACKAGE);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
g_resources_register (hdy_get_resource ());
hdy_init_public_types ();
hdy_initialized = TRUE;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment