From: Andrea Zagli Date: Sun, 24 Nov 2013 19:01:41 +0000 (+0000) Subject: Started GUI to view changes. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=3439d9b7e239727f701ec7b4d6d7ac5e06bbba0f;p=zakaudit%2Flibzakaudit Started GUI to view changes. --- diff --git a/.anjuta_sym_db.db b/.anjuta_sym_db.db index 783ebc1..0e8be40 100644 Binary files a/.anjuta_sym_db.db and b/.anjuta_sym_db.db differ diff --git a/.gitignore b/.gitignore index ea19dd6..0b5e80f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +compile INSTALL aclocal.m4 autom4te.cache diff --git a/Makefile.am b/Makefile.am index f8d72d8..a9928bd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = src docs tests +SUBDIRS = src data docs tests EXTRA_DIST = \ libzakaudit.pc.in diff --git a/configure.ac b/configure.ac index e4315e2..8f5b815 100644 --- a/configure.ac +++ b/configure.ac @@ -45,12 +45,15 @@ AC_STRUCT_TM # Checks for library functions. AC_CONFIG_FILES([ - libzakaudit.pc - Makefile - src/Makefile - docs/Makefile - docs/sql/Makefile - tests/Makefile + libzakaudit.pc + Makefile + src/Makefile + data/Makefile + data/libzakaudit/Makefile + data/libzakaudit/gui/Makefile + docs/Makefile + docs/sql/Makefile + tests/Makefile ]) AC_OUTPUT diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..b931e3a --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = libzakaudit diff --git a/data/libzakaudit/Makefile.am b/data/libzakaudit/Makefile.am new file mode 100644 index 0000000..13c2b3d --- /dev/null +++ b/data/libzakaudit/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = gui diff --git a/data/libzakaudit/gui/Makefile.am b/data/libzakaudit/gui/Makefile.am new file mode 100644 index 0000000..38a3375 --- /dev/null +++ b/data/libzakaudit/gui/Makefile.am @@ -0,0 +1,5 @@ +guidir = $(datadir)/$(PACKAGE)/gui + +gui_DATA = libzakaudit.ui + +EXTRA_DIST = $(gui_DATA) diff --git a/data/libzakaudit/gui/libzakaudit.ui b/data/libzakaudit/gui/libzakaudit.ui new file mode 100644 index 0000000..b82369b --- /dev/null +++ b/data/libzakaudit/gui/libzakaudit.ui @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + False + True + center-on-parent + True + + + True + False + 5 + 5 + + + True + True + automatic + automatic + etched-in + + + True + True + tstore_changes + True + + + Date + + + + 1 + + + + + + + Type + + + + 2 + + + + + + + User + + + + 3 + + + + + + + Field + + + + 4 + + + + + + + Value + + + + 5 + + + + + + + + + True + True + 0 + + + + + True + False + end + + + gtk-close + True + True + True + True + + + False + False + 0 + + + + + False + True + 1 + + + + + + diff --git a/src/Makefile.am b/src/Makefile.am index a30bbc8..b01b64d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,8 @@ +guidir = $(datadir)/$(PACKAGE)/gui + AM_CPPFLAGS = $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ + -DGUIDIR=\""$(guidir)"\" \ -DG_LOG_DOMAIN=\"ZakAudit\" \ $(LIBZAKAUDIT_CFLAGS) diff --git a/src/audit.c b/src/audit.c index 8c680bc..885c1eb 100644 --- a/src/audit.c +++ b/src/audit.c @@ -1,7 +1,7 @@ /* * audit.c * - * Copyright (C) 2005-2011 Andrea Zagli + * Copyright (C) 2005-2013 Andrea Zagli * * This file is part of libzak_audit. * diff --git a/src/libzakaudit.h b/src/libzakaudit.h index 6ae1878..5b3f76d 100644 --- a/src/libzakaudit.h +++ b/src/libzakaudit.h @@ -1,7 +1,7 @@ /* * libzakaudit.h * - * Copyright (C) 2005-2011 Andrea Zagli + * Copyright (C) 2005-2013 Andrea Zagli * * This file is part of libzak_audit. * diff --git a/tests/test1.c b/tests/test1.c index 9cd6226..48e2fb8 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -120,7 +120,6 @@ main (int argc, char *argv[]) gda_connection_statement_execute_non_select (conn, stmt, NULL, NULL, NULL); zak_audit_action_from_gdastatement (audit, ZAK_AUDIT_ACTION_AFTER_UPDATE, "I", "audit_test1", stmt); - stmt = gda_sql_parser_parse_string (parser, "DELETE FROM test1 WHERE id = 2", NULL, NULL); if (stmt == NULL) {