From fa14e75de4764424214c29c8e36dce7c502b9fe3 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 19 May 2011 17:32:28 +0200 Subject: [PATCH] On win32 libgtkmaskedentry must be loaded before to be seen by gtkbuilder. --- tests/plugin_gtkform.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.49.0