]> saetta.ns0.it Git - zakauthe/plugins/db/commitdiff
Redefined GLADEDIR for win32.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 23 Mar 2010 16:59:44 +0000 (17:59 +0100)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 23 Mar 2010 16:59:44 +0000 (17:59 +0100)
.gitignore
src/aute_db.c

index 58cfcfa2959b44d31e57d4e927921d4eae799f9a..a41bfddb2d59efeab0157aecb60b7c3a61d37fdd 100644 (file)
@@ -28,3 +28,4 @@ stamp-h1
 tests/test
 tools/aute-db-mkpwd
 *.tar.gz
+*.exe
\ No newline at end of file
index c5260fef497707c9467e1e400fcfde2ea76bac6e..d7c7b40b47a5da16b27c150aba5ae70312a532c2 100644 (file)
@@ -191,8 +191,18 @@ gchar
        error = NULL;
 
        GtkBuilder *gtkbuilder = gtk_builder_new ();
-       if (!gtk_builder_add_from_file (gtkbuilder, GLADEDIR "/autedb.glade", &error))
+
+#ifdef G_OS_WIN32
+#undef GLADEDIR
+
+       gchar *GLADEDIR;
+
+       GLADEDIR = g_build_filename (g_win32_get_package_installation_directory_of_module (NULL), "share", "libaute-db", "glade", NULL);
+#endif
+
+       if (!gtk_builder_add_from_file (gtkbuilder, g_build_filename (GLADEDIR, "autedb.glade", NULL), &error))
                {
+                       g_error ("Impossibile trovare il file di definizione dell'interfaccia utente.");
                        return NULL;
                }