From: Andrea Zagli Date: Sun, 1 Nov 2009 15:16:58 +0000 (+0100) Subject: Bug fix for datetime fields sql value. X-Git-Tag: 0.1.0~7 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=eaa8c96188b0296c109982ee0f2d4902f447d7a9;p=libgtkform Bug fix for datetime fields sql value. --- diff --git a/.gitignore b/.gitignore index 149fee4..cd9f704 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ *.stamp *.tar.gz *.pc +*.sed +*.sin +*.header .libs .deps ABOUT-NLS @@ -17,6 +20,7 @@ INSTALL Makefile Makefile.in Makefile.in.in +Makevars aclocal.m4 autom4te.cache/ config.guess @@ -43,3 +47,4 @@ POTFILES mkinstalldirs stamp-it intltool-* +Rules-quot diff --git a/docs/reference/libgtkform-decl.txt b/docs/reference/libgtkform-decl.txt index 74cb43a..724ce22 100644 --- a/docs/reference/libgtkform-decl.txt +++ b/docs/reference/libgtkform-decl.txt @@ -1049,7 +1049,7 @@ GtkForm *form gtk_form_get_table -const gchar * +gchar * GtkForm *form diff --git a/src/fielddatetime.c b/src/fielddatetime.c index ff56a5e..ba03320 100644 --- a/src/fielddatetime.c +++ b/src/fielddatetime.c @@ -211,7 +211,7 @@ gchar gchar *format; GtkFormFieldDateTimePrivate *priv; - ret = g_strdup ("''"); + ret = g_strdup ("NULL"); g_return_val_if_fail (IS_GTK_FORM_FIELD_DATETIME (field), ret); diff --git a/test/database.db b/test/database.db index 8ba071f..0660349 100644 Binary files a/test/database.db and b/test/database.db differ diff --git a/test/from_xml_with_db.c b/test/from_xml_with_db.c index bfe95cd..a050d9c 100644 --- a/test/from_xml_with_db.c +++ b/test/from_xml_with_db.c @@ -72,7 +72,7 @@ on_btn_save_clicked (GtkButton *button, { gchar *sql; - if (!gtk_form_check (form, TRUE, NULL, TRUE, w, FALSE)) + if (!gtk_form_check (form, FALSE, NULL, TRUE, w, FALSE)) { return; }