commit 283f59307496b848fef6abae3e69fa39ca414b86 Author: Bastien Nocera Date: Tue Feb 17 17:23:31 2015 +0100 0.3.0 NEWS | 13 +++++++++++++ configure.ac | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) commit 333d807b5d8533dc56dc27de496c132c49111b9c Author: Bastien Nocera Date: Tue Feb 17 17:22:58 2015 +0100 gom: Add libtool versioning configure.ac | 9 +++++++++ gom/Makefile.include | 4 ++++ 2 files changed, 13 insertions(+) commit a615f5cc1da473a83f782ea7ee0dee45c2356837 Author: Christophe Fergeau Date: Tue Feb 17 16:35:45 2015 +0100 build-sys: Don't override already set EXTRA_DIST Makefile.tests initializes EXTRA_DIST to "", tests/Makefile.include sets it to a different value rather than appending to it. As Makefile.am is including both, this causes warnings from automake that we are trying to override EXTRA_DIST which was already set. Appending with += fixes this warning. https://bugzilla.gnome.org/show_bug.cgi?id=740948 tests/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0bf1a9813ac474942eb4c9e6707688ba1c5035bd Author: Christophe Fergeau Date: Tue Feb 17 16:32:38 2015 +0100 build-sys: Stop using INCLUDES This is deprecated in favour of CPPFLAGS and causes warnings with newer automake versions: doc/Makefile.am:31: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') https://bugzilla.gnome.org/show_bug.cgi?id=740948 doc/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 020ff0fbbee17eda510122550099f8ba08203bd2 Author: Christophe Fergeau Date: Tue Feb 17 16:30:47 2015 +0100 build-sys: Use subdir-objects Recent automake versions complain at autogen.sh time: automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. gom/Makefile.include:21: warning: source file '$(top_srcdir)/gom/gom-command-builder.c' is in a subdirectory gom/Makefile.include:21: but option 'subdir-objects' is disabled This fixes this warning. https://bugzilla.gnome.org/show_bug.cgi?id=740948 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e57b4136c0487d8a60d39e598fb5051159b399e1 Author: Christophe Fergeau Date: Tue Feb 17 16:29:18 2015 +0100 build-sys: Don't use $(top_srcdir) to locate source files This is implicit, and having a variable in source filenames causes issues when used with subdir-objects (see https://bugzilla.gnome.org/show_bug.cgi?id=740948#c5 and following comments). I've checked that make distcheck (ie builddir!=srcdir) is still successful after this change. gom/Makefile.include | 40 ++++++++++++++++++++-------------------- tests/Makefile.include | 18 +++++++++--------- 2 files changed, 29 insertions(+), 29 deletions(-) commit 27cd22da69499ae22b2278d95836b250193b0088 Author: Bastien Nocera Date: Tue Feb 17 16:09:36 2015 +0100 gom: Fix invalid write when destroying GomRepository We hold a reference to the GomAdapter, so there's no need to set up a weak pointer, as we'll be the ones destroying it in finalize or when setting a new adapter. gom/gom-repository.c | 1 - 1 file changed, 1 deletion(-) commit 651baa6706de3990384a578ab0db698c463bfc2b Author: Enrico Nicoletto Date: Mon Jan 26 15:59:06 2015 +0000 Updated Brazilian Portuguese translation po/pt_BR.po | 110 ++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 58 insertions(+), 52 deletions(-) commit ca037253a0239dbbaa84152d7b9e09efb230a4c4 Author: Mathieu Bridon Date: Mon Dec 29 11:37:37 2014 +0100 command: Also debug-print the values of the query This is quite useful when debugging what is going on with a query. https://bugzilla.gnome.org/show_bug.cgi?id=742180 gom/gom-command.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) commit 7d0a3f32366a96f3faa8204acb04358d09a9696a Author: Daniel Mustieles Date: Mon Jan 12 19:17:06 2015 +0100 Updated Spanish translation po/es.po | 66 ++++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 29 deletions(-) commit 11fab3f99d03d2ae707657ed6833cf6182b6bd7b Author: Bastien Nocera Date: Wed Jan 7 13:58:47 2015 +0100 Revert "build: Use "subdir-objects" for newer autotools" This reverts commit 03f516d729dff0a557408dcebf1945c04e0d3feb. This commit caused build failures. See https://bugzilla.gnome.org/show_bug.cgi?id=740948#c5 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 03f516d729dff0a557408dcebf1945c04e0d3feb Author: Joseph Herlant Date: Fri Jan 2 02:14:14 2015 +0000 build: Use "subdir-objects" for newer autotools This avoids a warning with newer versions of the autotools https://bugzilla.gnome.org/show_bug.cgi?id=740948 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 34184c1e292d8d0c269d477ef9669a7da0127422 Author: Patrick Welche Date: Mon Dec 8 19:45:24 2014 +0000 build: Make gdk-pixbuf an optional dependency gdk-pixbuf is only needed for the unit tests. Instead of bailing if gdk-pixbuf is not found, don't build the tests, i.e., behave as if --disable-glibtest had been specified. https://bugzilla.gnome.org/show_bug.cgi?id=741219 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 067e5a536677d5f27d350a438c100dea94c72867 Author: Mathieu Bridon Date: Thu Nov 27 19:40:28 2014 +0100 git: Ignore some generated files https://bugzilla.gnome.org/show_bug.cgi?id=741261 .gitignore | 3 +++ 1 file changed, 3 insertions(+) commit 3e70d7bf69ab579c27bfa6c8522a6e53ab11b33e Author: Mathieu Bridon Date: Thu Nov 27 19:53:17 2014 +0100 tests: Fix some build warnings This removes warnings like: ./tests/test-gom-find-specific.c:67:3: warning: initialization discards ‘const’ qualifier from pointer target type https://bugzilla.gnome.org/show_bug.cgi?id=741261 tests/test-gom-find-specific.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit aa22569dd294423cdd6792906f0bcec57a12dcc1 Author: Mathieu Bridon Date: Tue Nov 25 19:37:28 2014 +0100 tests: Remove shadowed declarations [-Wshadow] https://bugzilla.gnome.org/show_bug.cgi?id=741261 tests/test-gom-stress.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 991dcc20db650611853529c2d9c7dc49700b248b Author: Mathieu Bridon Date: Mon Dec 8 18:51:09 2014 +0100 tests: Ensure filter priority This runs 2 queries with the same filters, but "grouped" in 2 different ways, to ensure that we respect filtering priorities (i.e parentheses). https://bugzilla.gnome.org/show_bug.cgi?id=740701 tests/test-gom-find-specific.c | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) commit 2d4e1dbb9f73b8f7667e8ca3c5db48fd6154bb4f Author: Mathieu Bridon Date: Mon Dec 8 18:24:31 2014 +0100 tests: Add more data to the DB This will help better ensuring some filter beheviours. https://bugzilla.gnome.org/show_bug.cgi?id=740701 tests/test-gom-find-specific.c | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) commit ac381b1240093f93f1ff3e4c1b60f4c6dd9d8512 Author: Mathieu Bridon Date: Thu Nov 27 19:38:51 2014 +0100 filter: Respect filter priorities This adds parenthesis to the generated SQL queries where appropriate. https://bugzilla.gnome.org/show_bug.cgi?id=740701 gom/gom-filter.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 021fffc3386ef2414201b147d1396e7b5d763afa Author: Balázs Úr Date: Sun Dec 7 11:50:09 2014 +0000 Updated Hungarian translation po/hu.po | 57 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 26 deletions(-) commit 9e26704653cfabd86d6835ca93dd63066fe0b5de Author: Mathieu Bridon Date: Tue Dec 2 20:52:15 2014 +0100 filter: Factorize some code https://bugzilla.gnome.org/show_bug.cgi?id=740872 gom/gom-filter.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) commit 84d9d22eb487f058e57e660ae5aa5d882dbdecf0 Author: Mathieu Bridon Date: Thu Nov 27 19:29:36 2014 +0100 filter: Add new _fullv constructors This is similar to the ones introduced in the previous commit, but the argument is a NULL-temrinated array of GomFilter, rather than using variadic functions. A unit test is also added. https://bugzilla.gnome.org/show_bug.cgi?id=740872 gom/gom-filter.c | 54 +++++++++++++++++++++++++++++++ gom/gom-filter.h | 2 ++ tests/test-gom-find-specific.c | 72 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 128 insertions(+) commit fa1f6031061becab0e722be080d272971a465c75 Author: Mathieu Bridon Date: Thu Nov 27 19:27:43 2014 +0100 filter: Add new _full variadic constructors This allows AND-/OR-ing more than 2 subfilters at a time. A unit test is also added. https://bugzilla.gnome.org/show_bug.cgi?id=740872 gom/gom-filter.c | 75 ++++++++++++++++++++++++++++++++++++++++++ gom/gom-filter.h | 4 +++ tests/test-gom-find-specific.c | 69 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+) commit 401d40f53882a0947a36921b7b1bb6c62485bd87 Author: Mathieu Bridon Date: Thu Nov 27 18:43:07 2014 +0100 filter: Make subfilters a queue Having subfilters as just two left/right values makes it impossible to have filters with more than 2 subfilters. But it would be very nice if we could have a single filter like: foo=1 AND bar=1 AND baz=0 Using a queue for the subfilters makes this possible... and it's coming in a future commit. https://bugzilla.gnome.org/show_bug.cgi?id=740872 gom/gom-filter.c | 59 ++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 19 deletions(-) commit e6a7d03daa40610ae47a1718c84e77537a1612d4 Author: Mathieu Bridon Date: Sat Nov 29 09:43:34 2014 +0100 filter: Free subfilters https://bugzilla.gnome.org/show_bug.cgi?id=740872 gom/gom-filter.c | 3 +++ 1 file changed, 3 insertions(+) commit 7f594e295c009710318b0874e38d11d27e664b5d Author: Мирослав Николић Date: Sat Nov 29 10:43:59 2014 +0100 Added Serbian translation po/LINGUAS | 2 + po/sr.po | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ po/sr@latin.po | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 400 insertions(+) commit 0093368877092b57e1a686ebbc043c81191e3f37 Author: Bastien Nocera Date: Wed Nov 26 23:09:01 2014 +0100 tests: Add a test for finalizing the repo/adapter tests/test-gom-repository.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) commit d1f73ee9ddc446e50902b45a9813a188b6c5011d Author: Mathieu Bridon Date: Mon Nov 24 21:48:32 2014 +0100 tests: Test behaviour of the GLOB operator https://bugzilla.gnome.org/show_bug.cgi?id=740657 tests/test-gom-find-specific.c | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) commit 40c70a00398b9175bf05a8447f4dca055a955575 Author: Mathieu Bridon Date: Mon Nov 24 21:46:17 2014 +0100 filter: Support the GLOB operator from SQLite http://www.sqlite.org/lang_expr.html#like https://bugzilla.gnome.org/show_bug.cgi?id=740657 gom/gom-filter.c | 16 ++++++++++++++-- gom/gom-filter.h | 6 +++++- 2 files changed, 19 insertions(+), 3 deletions(-) commit 7ad20c403980e60e77f5b2cf0acacc1d22da8e5a Author: Mathieu Bridon Date: Sun Nov 23 20:25:53 2014 +0100 group: Fix a memory leak https://bugzilla.gnome.org/show_bug.cgi?id=740595 gom/gom-resource-group.c | 1 + 1 file changed, 1 insertion(+) commit 47f0b6a580b8e1cd16394d9df9f3752d757529d4 Author: Bastien Nocera Date: Thu Nov 20 10:54:47 2014 +0100 build: Bump version So that Mathieu can rely on the newer version :) configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b43eb35b1d715dd29c50d792e2f210a481654a9b Author: Bastien Nocera Date: Wed Nov 5 18:21:14 2014 +0100 gom: Don't do get/set properties in != main thread when reading This is the 2nd part of b14e7044bf5cbfe4b6baac4b3ce66dba7dc8f458. We now try to avoid creating, and setting GomResource items when reading from the database. Instead, the items are created from cached results as needed when gom_resource_group_get_index() is called. https://bugzilla.gnome.org/show_bug.cgi?id=728301 gom/gom-resource-group.c | 110 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 87 insertions(+), 23 deletions(-) commit cf1d44520ebb75e608b367f5260dd9558293e09b Author: Bastien Nocera Date: Tue Nov 4 20:10:03 2014 +0100 gom: Fetch properties when inserted for batched writes This could allow front-ends to avoid blocking for "times n_items" that time when launching the batched write. gom/gom-resource-group.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) commit 880b924e9783e68b3b7339b4baeedb1c878b4e93 Author: Piotr Drąg Date: Wed Nov 5 13:42:59 2014 +0100 Updated Polish translation po/pl.po | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-) commit 02ab604ef6d29302f96ef0cf1df444621882bff7 Author: Marek Černocký Date: Tue Nov 4 21:29:52 2014 +0100 Updated Czech translation po/cs.po | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) commit 5157bef8da360b16926e3bd928ef26af8acf2173 Author: Bastien Nocera Date: Sun Sep 21 19:27:54 2014 +0200 tests: Add test for batched writes https://bugzilla.gnome.org/show_bug.cgi?id=730950 tests/test-gom-stress.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 111 insertions(+), 1 deletion(-) commit 0faa9577dc961a416ef16b884c22a88f3c82345a Author: Bastien Nocera Date: Sun Sep 21 18:55:39 2014 +0200 gom: Add support for batched writes https://bugzilla.gnome.org/show_bug.cgi?id=730950 gom/gom-resource-group.c | 224 +++++++++++++++++++++++++++++++++++++++++++++++ gom/gom-resource-group.h | 13 +++ 2 files changed, 237 insertions(+) commit 5955dc1be8dcddc566bbeec132dbfaf8f7a719d2 Author: Bastien Nocera Date: Sun Sep 21 19:17:04 2014 +0200 gom: Export gom_resource_do_save() internally So it can be used for saving when already in worker thread. https://bugzilla.gnome.org/show_bug.cgi?id=730950 gom/gom-resource-priv.h | 5 +++++ gom/gom-resource.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) commit b14e7044bf5cbfe4b6baac4b3ce66dba7dc8f458 Author: Bastien Nocera Date: Tue Nov 4 13:33:17 2014 +0100 gom: Don't do get/set properties in != main thread when saving Avoid manipulating properties from within a thread other than the main thread when saving. This breaks Javascript and Python bindings. Note, reading from the database is likely still broken though. https://bugzilla.gnome.org/show_bug.cgi?id=728301 gom/gom-resource.c | 120 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 96 insertions(+), 24 deletions(-) commit e943a41e164c1894927329f8e310c028694af639 Author: Bastien Nocera Date: Tue Nov 4 17:09:30 2014 +0100 gom: Fix unsetting the repo property in GomResource Awkward if ((foo = bar)) construct, and style fixes. gom/gom-resource.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 0639c62d2c31c0562f29856bff28bd7e89ea5ae4 Author: Bastien Nocera Date: Tue Nov 4 16:57:43 2014 +0100 gom: Fix setting the repo twice in GomResourceGroup gom/gom-resource-group.c | 1 + 1 file changed, 1 insertion(+) commit 59d8b6f4187e4d8ed81964520617408c3e1568ad Author: Bastien Nocera Date: Tue Nov 4 13:08:53 2014 +0100 gom: Fix insertion of resources twice removed from GomResource When inserting an object that's a child class to a child class of GomResource, only the first insert is actually an insert, the rest are updates. gom/gom-resource.c | 2 ++ 1 file changed, 2 insertions(+) commit 69a877747835174a1dbd1da7b382ce359ecd691d Author: Andika Triwidada Date: Wed Oct 15 06:29:10 2014 +0000 Added Indonesian translation po/LINGUAS | 1 + po/id.po | 191 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 192 insertions(+) commit dc6164dc7d3c626ce149f03b0b2e41ef515166f9 Author: Bastien Nocera Date: Fri Sep 26 20:56:08 2014 +0200 gom: Don't assert when the primary key isn't set gjs will want to set the primary key after the object has been constructed. We'll assert() at the first use of the resource instead. https://bugzilla.gnome.org/show_bug.cgi?id=728301 gom/gom-resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit d2e01eda68bd9ffbd30c68151760e3346c53de68 Author: Bastien Nocera Date: Fri Sep 26 20:52:57 2014 +0200 gom: Allow the empty string as an ID gjs doesn't allow null values for string properties, so work-around that by allowing '0' as a value. https://bugzilla.gnome.org/show_bug.cgi?id=728301 gom/gom-resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit cfe86c6a134d1eca7644fb2655213f179cd28aa1 Author: Bastien Nocera Date: Fri Sep 26 18:35:29 2014 +0200 gom: Better warnings for _set_primary_key() By printing the class name that we're modifying. gom/gom-resource.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit d18d14390d88908a95681947dbafa17496acca22 Author: Bastien Nocera Date: Fri Sep 26 18:35:06 2014 +0200 gom: Fix a format warning By casting GTypes to ints to print them. gom/gom-command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit bd8089928f09690e60ac5ff55235f502f819486c Author: Bastien Nocera Date: Sun Sep 21 19:01:43 2014 +0200 tests: Fix stress test when upping NUM_RECORDS tests/test-gom-stress.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) commit d738e73e5fef84593ac2968dc2489a5ea569e7d7 Author: Bastien Nocera Date: Sun Sep 21 18:53:07 2014 +0200 tests: Fix build warnings Unused variables and missing declarations. tests/test-gom-constraints.c | 2 ++ tests/test-gom-find-specific.c | 5 ++--- tests/test-gom-find.c | 2 ++ tests/test-gom-insert.c | 7 ++++--- tests/test-gom-migration.c | 2 ++ tests/test-gom-stress.c | 2 ++ tests/test-gom-transform.c | 2 ++ 7 files changed, 16 insertions(+), 6 deletions(-) commit 4a32e86d9545e3496ce5415c1bbf4d42d3548553 Author: Bastien Nocera Date: Sun Sep 21 18:52:46 2014 +0200 gom: Fix a number of build warnings gom/gom-filter.c | 2 +- gom/gom-resource-group.c | 10 +++++----- gom/gom-resource.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) commit 10c349e70b509db2679e17636db2ac302e9e969f Author: Bastien Nocera Date: Sun Sep 21 18:50:58 2014 +0200 gom: Fix thinko in is_new_in_version() Don't really want to be doing arithmetic on a pointer. gom/gom-command-builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d6517c41bf3251c046e64a9b348ee14bc037e6a6 Author: Bastien Nocera Date: Sun Sep 21 18:41:21 2014 +0200 build: Add warning CFLAGS configure.ac | 1 + gom/Makefile.include | 1 + tests/Makefile.include | 18 +++++++++--------- 3 files changed, 11 insertions(+), 9 deletions(-) commit 048cb62cbf53cb22a8af955249ee6b5b0907250c Author: Bastien Nocera Date: Sun Sep 21 02:24:42 2014 +0200 gom: Remove "adapter" property from GomResourceGroup It wasn't used that much, and duplicated what we could have gotten from GomRepository anyway. gom/gom-repository.c | 2 +- gom/gom-resource-group.c | 49 +++++++----------------------------------------- gom/gom-resource.c | 1 - 3 files changed, 8 insertions(+), 44 deletions(-) commit 24d2090fcadf530e3c303ef2c8d7ae2b374a87c0 Author: Balázs Úr Date: Thu Sep 11 18:26:35 2014 +0000 Updated Hungarian translation po/hu.po | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) commit dc3de04150eb9879f8d0e45bff6bef0150dcf5c4 Author: Christian Hergert Date: Tue Sep 9 13:29:18 2014 -0700 license: update COPYING to LGPL 2.1+ to match file headers. COPYING | 657 ++++++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 497 insertions(+), 160 deletions(-) commit fcb898411ee7969c376478bba3da3a8d95f98d14 Author: Marek Černocký Date: Tue Sep 9 21:22:21 2014 +0200 Updated Czech translation po/cs.po | 84 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) commit 9d6e201a48c925d0a0a91c843a9797f827460554 Author: Piotr Drąg Date: Sun Sep 7 02:48:16 2014 +0200 Added Polish translation po/LINGUAS | 1 + po/pl.po | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 200 insertions(+) commit 100883735ca4c8b38aafe24f28e847b2cc0d29bc Author: Piotr Drąg Date: Sun Sep 7 02:47:34 2014 +0200 Fix typo gom/gom-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)