From: Andrea Zagli Date: Fri, 13 Aug 2010 09:28:33 +0000 (+0200) Subject: Initial import. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=d24a36a73252a395fa1434bc21a2da61a3b773ce;p=zakaudit%2Fgui Initial import. --- diff --git a/configure.ac b/configure.ac index 39d3acf..b3cb8bc 100644 --- a/configure.ac +++ b/configure.ac @@ -31,7 +31,6 @@ AC_CONFIG_FILES([ src/Makefile data/Makefile data/audit-gui/Makefile - data/audit-gui/form/Makefile data/audit-gui/gui/Makefile ]) AC_OUTPUT diff --git a/src/commons.h b/src/commons.h index bbd47b8..cc395df 100644 --- a/src/commons.h +++ b/src/commons.h @@ -29,14 +29,12 @@ typedef struct { - gchar *guidir; - gchar *formdir; + const gchar *guidir; + const gchar *guifile; GtkBuilder *gtkbuilder; GdaConnection *gdacon; - - const gchar *guifile; } Commons; #endif /* __COMMONS_H__ */ diff --git a/src/main.c b/src/main.c index 35e4d31..8c1efe5 100644 --- a/src/main.c +++ b/src/main.c @@ -22,7 +22,6 @@ #include -#include #include #include @@ -30,8 +29,6 @@ static Commons *commons; -static GKeyFile *config; - static GtkWidget *w; static GtkWidget *vbx_body; static GtkWidget *vbx_body_child; @@ -107,23 +104,16 @@ main (int argc, char *argv[]) if (p != NULL && g_ascii_strcasecmp (p + 1, "src") == 0) { - /* - *p = '\0'; - commons->guidir = g_build_filename (moddir, "data", PACKAGE, "gui", NULL); - commons->formdir = g_build_filename (moddir, "data", PACKAGE, "form", NULL);*/ commons->guidir = g_strdup (GUIDIR); - commons->formdir = g_strdup (FORMDIR); } else { commons->guidir = g_build_filename (moddir, "share", PACKAGE, "gui", NULL); - commons->formdir = g_build_filename (moddir, "share", PACKAGE, "form", NULL); } #else commons->guidir = g_strdup (GUIDIR); - commons->formdir = g_strdup (FORMDIR); #endif