From: Andrea Zagli Date: Thu, 19 May 2011 15:32:28 +0000 (+0200) Subject: On win32 libgtkmaskedentry must be loaded before to be seen by gtkbuilder. X-Git-Tag: v0.0.3~3 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=fa14e75de4764424214c29c8e36dce7c502b9fe3;p=libgtkmaskedentry On win32 libgtkmaskedentry must be loaded before to be seen by gtkbuilder. --- diff --git a/tests/plugin_gtkform.c b/tests/plugin_gtkform.c index d7fd864..f50f6ec 100644 --- a/tests/plugin_gtkform.c +++ b/tests/plugin_gtkform.c @@ -55,6 +55,11 @@ main (int argc, char **argv) gtk_init (&argc, &argv); +#ifdef G_OS_WIN32 + gchar *libname = g_strdup ("libgtkmaskedentry-0.dll"); + g_module_open (g_build_filename (g_getenv ("LIBGTKFORM_MODULESDIR"), libname, NULL), G_MODULE_BIND_LAZY); +#endif + error = NULL; builder = gtk_builder_new (); gtk_builder_add_from_file (builder, "plugin_gtkform.ui", &error);