]> saetta.ns0.it Git - zakauthe/plugins/smbldap/commitdiff
Adjustments and bugfixes.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 7 Jun 2011 14:41:43 +0000 (16:41 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 7 Jun 2011 14:41:43 +0000 (16:41 +0200)
configure.ac
data/libaute-smbldap/gui/autesmbldap.gui
src/aute_smbldap.c

index b2ed1ffaf5c953a62d13e7beb9ba8d6f461f4f32..e4113cf352ee4e6a02ac0acfe7260bc2836e3671 100644 (file)
@@ -6,7 +6,10 @@ AC_INIT([libaute-smbldap], [0.1.0], [azagli@libero.it])
 AC_CONFIG_SRCDIR([src/aute_smbldap.c])
 AC_CONFIG_HEADER([config.h])
 
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE(-Wall)
+
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+
 AM_MAINTAINER_MODE
 
 AC_CANONICAL_SYSTEM
@@ -19,7 +22,7 @@ AC_PROG_LIBTOOL
 
 # Checks for libraries.
 PKG_CHECK_MODULES(LIBAUTESMBLDAP, [gtk+-2.0 >= 2.16.0
-                              libaute >= 0.1.0])
+                                   libaute >= 0.1.0])
 
 AC_SUBST(LIBAUTESMBLDAP_CFLAGS)
 AC_SUBST(LIBAUTESMBLDAP_LIBS)
index 399d0cba1cbbc24fd231c1d09e21c468b6a97189..a4fd0504c5ff29e99ac26ab519c843971d963158 100644 (file)
@@ -6,6 +6,7 @@
     <property name="visible">True</property>
     <property name="title" translatable="yes">Autenticazione</property>
     <property name="modal">True</property>
+    <property name="window_position">center</property>
     <property name="type_hint">dialog</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="dialog-vbox1">
index 3d71b000606d1483fb2eda0f7878ca9b7671d2bc..b97b00986388ca99c3d699e8e25c4d7032588342 100644 (file)
@@ -881,10 +881,29 @@ gchar
 
 #ifdef G_OS_WIN32
 #undef GUIDIR
+#undef FORMDIR
 
        gchar *GUIDIR;
+       gchar *FORMDIR;
 
-       GUIDIR = g_build_filename (g_win32_get_package_installation_directory_of_module (NULL), "share", "libaute-smbldap", "gui", NULL);
+       gchar *moddir;
+       gchar *p;
+
+       moddir = g_win32_get_package_installation_directory_of_module (NULL);
+
+       p = g_strrstr (moddir, g_strdup_printf ("%c", G_DIR_SEPARATOR));
+       if (p != NULL
+           && (g_ascii_strcasecmp (p + 1, "src") == 0
+           || g_ascii_strcasecmp (p + 1, ".libs") == 0))
+               {
+                       GUIDIR = g_build_filename ("/mingw", "share", "libaute-smbldap", "gui", NULL);
+                       FORMDIR = g_build_filename ("/mingw", "share", "libaute-smbldap", "form", NULL);
+               }
+       else
+               {
+                       GUIDIR = g_build_filename (moddir, "share", "libaute-smbldap", "gui", NULL);
+                       FORMDIR = g_build_filename (moddir, "share", "libaute-smbldap", "form", NULL);
+               }
 #endif
 
        guifile = g_build_filename (GUIDIR, "autesmbldap.gui", NULL);