]> saetta.ns0.it Git - libgtkmaskedentry/commitdiff
On win32 libgtkmaskedentry must be loaded before to be seen by gtkbuilder.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 19 May 2011 15:32:28 +0000 (17:32 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 19 May 2011 15:32:28 +0000 (17:32 +0200)
tests/plugin_gtkform.c

index d7fd864deef5ac49e1345154586eb37205a36256..f50f6eca103846c772aeb8495b797403e4aa6add 100644 (file)
@@ -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);