commit f14e2e5c53a5f1113c5e063511b7ea31319f4ccf Author: Matthias Clasen Date: Tue Sep 1 10:58:32 2015 -0400 2.45.7 NEWS | 47 +++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 2 +- 2 files changed, 48 insertions(+), 1 deletion(-) commit b04c565f33edbe7b81b028ba371da93b946f6393 Author: Emmanuele Bassi Date: Wed Aug 19 13:47:58 2015 +0100 gio: Link against gmodule when building tools Otherwise cross-compilation will fail with linker errors. https://bugzilla.gnome.org/show_bug.cgi?id=753745 gio/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) commit 5ce70917df75f87c89a9b1e9d0583ae4135f0b2c Author: Emmanuele Bassi Date: Wed Aug 19 13:38:30 2015 +0100 Drop binary checks when cross-compiling We don't need to run binaries we just built in order to successfully build GLib and friends any more. Since commit b74e2a7, we don't need to run glib-genmarshal when building GIO; since commit f9eb9eed, all our tests (including the ones that do need to run binaries we just built) are only built when running "make check", instead of unconditionally at every build. This means that we don't need to check for existing, native binaries when cross-compiling, and fail the configuration step if they are not found — which also means that you don't need to natively build GLib for your toolchain, in order to cross-compile GLib. We can also use the cross-compilation conditional, and skip those tests that require a binary we just built in order to build. https://bugzilla.gnome.org/show_bug.cgi?id=753745 configure.ac | 24 ++---------------------- gio/tests/Makefile.am | 12 +++++------- gobject/tests/Makefile.am | 14 ++++++++------ tests/gobject/Makefile.am | 20 +++++++------------- 4 files changed, 22 insertions(+), 48 deletions(-) commit 1dec512a66fddfd8b4b265231b00d4f918b16cef Author: Matthias Clasen Date: Tue Sep 1 10:21:26 2015 -0400 Revert "GSettings: delay backend subscription" This reverts commit 8ff5668a458344da22d30491e3ce726d861b3619. This change has had considerable fallout, and there was no follow-up to address it. https://bugzilla.gnome.org/show_bug.cgi?id=733791 gio/gsettings-tool.c | 13 ------------- gio/gsettings.c | 47 ++++------------------------------------------- 2 files changed, 4 insertions(+), 56 deletions(-) commit 7fff264777ac9869ff347dd2bb02304e11d83a20 Author: Matthias Clasen Date: Tue Sep 1 10:18:23 2015 -0400 Revert "GSettings: fix check for delaying backend subscription" This reverts commit d511d6b37f051d2cd8698055cbd85ee7f987325d. gio/gsettings.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) commit 16721468e5410732f2575be35652ece538587b94 Author: Iain Lane Date: Wed Jul 15 17:01:03 2015 +0100 gsignal: Don't crash when operating on signals on the wrong object gobject/gsignal.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) commit 261250c46e3eab9b54c9cc59b405a69785a65b35 Author: Iain Lane Date: Thu Jul 16 15:38:21 2015 +0100 Test that disconnecting from the wrong thing warns and doesn't crash This broke in 916297be799ee001b4a214cc52c3b960bb0b5deb (≥ 2.45.3) gobject/tests/signals.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) commit 976da775cbeff497e922f959f9a35d5e06cfc7a9 Author: Alexandre Franke Date: Tue Sep 1 07:57:48 2015 +0000 Updated French translation po/fr.po | 230 +++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 120 insertions(+), 110 deletions(-) commit 9f2e3f6b7262a8cae817a4cc12388fcc1bd63bce Author: Dan Winship Date: Wed Dec 3 05:57:29 2014 -0500 gtestutils: add g_assert_cmpmem() Add a test macro to compare two buffers (which are not already known to be the same length) for equality. https://bugzilla.gnome.org/show_bug.cgi?id=754283 docs/reference/glib/glib-sections.txt | 1 + gio/tests/async-close-output-stream.c | 9 ++----- gio/tests/converter-stream.c | 46 +++++++++++++++++------------------ gio/tests/gdbus-peer.c | 3 +-- gio/tests/gsettings.c | 4 +-- gio/tests/gsubprocess.c | 11 ++++----- gio/tests/readwrite.c | 10 +++----- glib/gtestutils.c | 33 +++++++++++++++++++++---- glib/gtestutils.h | 10 ++++++++ glib/tests/base64.c | 25 ++++--------------- glib/tests/bytes.c | 23 ++++++------------ glib/tests/checksum.c | 3 +-- glib/tests/gvariant.c | 3 +-- glib/tests/hmac.c | 3 +-- glib/tests/strfuncs.c | 3 +-- glib/tests/string.c | 10 +++----- glib/tests/testing.c | 26 ++++++++++++++++++++ 17 files changed, 120 insertions(+), 103 deletions(-) commit 367f36d630afa01b0967547f5a038a1f8f499f45 Author: Dan Winship Date: Fri Dec 12 12:47:00 2014 -0500 gtestutils: forbid having two tests with the same full path In the same way that gtestutils used to let you create multiple suites with the same name, it also let you create multiple tests with the same name. Make that an error instead (and fix glib/tests/base64.c, which was registering three separate tests named "/base64/incremental/nobreak/4", and glib/tests/autoptr.c, which was running test_g_variant_builder() twice). https://bugzilla.gnome.org/show_bug.cgi?id=754286 glib/gtestutils.c | 16 +++++++++++++++- glib/tests/autoptr.c | 1 - glib/tests/base64.c | 6 +++--- 3 files changed, 18 insertions(+), 5 deletions(-) commit 123ea70d74e655f7401cf70d364ccfb2b03022a7 Author: Dan Winship Date: Sat Feb 1 18:23:13 2014 +0100 gtestutils: improve non-TAP output, fix handling of incomplete tests In non-TAP mode, tests that used g_test_skip() were labelled "OK", and tests that used g_test_incomplete() were labelled "FAIL". Explicitly show them as "SKIP" and "TODO" instead, like in the TAP case. Also, incomplete/TODO tests are not supposed to be treated as failures, so fix that too. https://bugzilla.gnome.org/show_bug.cgi?id=754286 glib/gtestutils.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) commit 6e382208f72cfd449cf076ac1f1fa340fe6eea0f Author: Dan Winship Date: Fri Dec 12 11:49:31 2014 -0500 gtestutils: print the TAP test plan first, not last TAP allows you to print the "test plan" (ie, the expected number of tests" either at the start or the end of the test program, but if you put it at the end, and the program crashes, automake will complain "missing test plan", which is confusing to users (particularly since it prints that *before* it prints that the test program crashed, suggesting that somehow the lack of test plan was responsible for the crash or something, rather than vice versa). Anyway, change it to count the tests ahead of time, and print the test plan first. Keeping this simple requires disallowing the '-p', '-s', and '--GTestSkipCount' options when using '--tap' (although we were already printing the wrong number in the --GTestSkipCount case anyway). https://bugzilla.gnome.org/show_bug.cgi?id=754284 glib/gtestutils.c | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) commit 51c91ed53d54efed8f82d5ead200ac5b6ef52a6a Author: Dan Winship Date: Fri Mar 14 14:57:51 2014 -0400 gtestutils: move "/subprocess" path special-casing https://bugzilla.gnome.org/show_bug.cgi?id=754284 glib/gtestutils.c | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) commit 91ff2ba844a917162307a75afa658571d419701f Author: Dan Winship Date: Fri Mar 14 11:19:01 2014 -0400 gtestutils: make g_test_suite_run{,internal} less confusing Rewrite g_test_suite_run() and g_test_suite_run_internal() to make it clearer what they do (while still preserving exact backward compatibility, meaning we need to handle the "-p" case differently from the non-"-p" case). https://bugzilla.gnome.org/show_bug.cgi?id=754284 glib/gtestutils.c | 94 ++++++++++++++++++++++++------------------------------- 1 file changed, 41 insertions(+), 53 deletions(-) commit 510331bacf803a905577b93f118f5a32bba55bd3 Author: Dan Winship Date: Fri Mar 14 11:41:44 2014 -0400 gtestutils: reorganize g_test_name manipulation https://bugzilla.gnome.org/show_bug.cgi?id=754284 glib/gtestutils.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) commit 34ec21fab54ecd964ab7167060b650ab0ff44602 Author: Matthias Clasen Date: Mon Aug 31 13:48:22 2015 -0400 win32: Fix a g_once_init_enter call g_once_init_enter must be given a gsize-sized location. A gboolean doesn't qualify. This broke the build on win64. http://bugzilla.gnome.org/show_bug.cgi?id=754307 gio/gwin32appinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 591eabcbbcaf3589b004e65c4a11a0d7d18887c8 Author: Matthias Clasen Date: Mon Aug 31 13:43:47 2015 -0400 Remove an unused variable gio/gwin32registrykey.c | 2 -- 1 file changed, 2 deletions(-) commit b8a2e08abadda92547ed63881dcfbe779594d03b Author: Balázs Úr Date: Mon Aug 31 16:16:49 2015 +0000 Updated Hungarian translation po/hu.po | 510 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 256 insertions(+), 254 deletions(-) commit e5734c37a6f1b0d3ce467e7a5ac11c29c1d5f56a Author: Matthias Clasen Date: Wed Aug 26 23:20:39 2015 -0400 Add g_list_store_sort GListStore already has a g_list_store_insert_sorted function, which can be used to keep the list sorted according to a fixed sort function. But if the sort function changes (as e.g. with sort columns in a list UI), the entire list needs to be resorted. In that case, you want g_list_store_sort(). https://bugzilla.gnome.org/show_bug.cgi?id=754152 docs/reference/gio/gio-sections.txt | 1 + gio/gliststore.c | 26 ++++++++++++++++++++++++++ gio/gliststore.h | 5 +++++ 3 files changed, 32 insertions(+) commit 516adb99c094fc2c4dcb95f97f9d251d7bba1716 Author: Michael Catanzaro Date: Fri Aug 28 19:47:19 2015 -0500 Add certificate chain construction test Enhance GTestTlsBackend to allow setting the issuer property of GTlsCertificates, and add a test to ensure certificate chain construction with g_tls_certificate_new_from_pem() works as expected. https://bugzilla.gnome.org/show_bug.cgi?id=754264 gio/tests/cert-tests/cert-list.pem | 16 +++++++++ gio/tests/gtesttlsbackend.c | 9 ++++- gio/tests/tls-certificate.c | 69 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 1 deletion(-) commit 587068c969716df2b994362e3133c68d91455d47 Author: Michael Catanzaro Date: Fri Aug 28 19:43:09 2015 -0500 GTlsCertificate: fix loading of chain with private key If a private key (or anything, in fact) follows the final certificate in the file, certificate parsing will be aborted and only the first certificate in the chain will be returned, with the private key not set. Be tolerant of this, rather than expecting the final character in the file to be the newline following the last certificate. https://bugzilla.gnome.org/show_bug.cgi?id=754264 gio/gtlscertificate.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 1ab3e3ed3e0c50cc8e747a9617f9412af8a15bdd Author: Dan Winship Date: Tue Aug 25 10:18:06 2015 -0400 gsocket: add a wrapper around g_set_error() to avoid extra work If @error is NULL then we don't even need to evaluate the remaining arguments. And if errno is EWOULDBLOCK, then no one should see the error message anyway, so don't bother g_strdup_printf'ing up a pretty one. https://bugzilla.gnome.org/show_bug.cgi?id=752769 gio/gsocket.c | 54 ++++++++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) commit a70265779480e31d575dd2a4f0444bf5a1849c22 Author: Tom Tryfonidis Date: Fri Aug 28 20:49:53 2015 +0000 Updated Greek translation po/el.po | 676 +++++++++++++++++++++++++++++---------------------------------- 1 file changed, 315 insertions(+), 361 deletions(-) commit 30d95388e7835487e5ed67334bddc2a45c0846a5 Author: Matthias Clasen Date: Fri Aug 28 16:05:05 2015 -0400 Test g_strerror some more Set a locale here, so we actually do conversion, and also run the loop far enough that we hit the 'unknown error' case. glib/tests/strfuncs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 36fac0849ceabafb9e2a15045230833e7dbc9e9d Author: Matthias Clasen Date: Fri Aug 28 15:38:04 2015 -0400 Make g_strerror threadsafe We need to use strerror_r here, in order to be threadsafe. glib/gstrfuncs.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) commit eb7ffccf44ecb27f581693c4f62ed8d361999817 Author: Matthias Clasen Date: Fri Aug 28 14:13:24 2015 -0400 test repeated g_hash_table_remove_all calls I just came across a situation where code ended up stuck in an infinite loop in GHashTable code, so lets verify that this is a safe thing. glib/tests/hash.c | 4 ++++ 1 file changed, 4 insertions(+) commit 323b1d9c5f20ff46d420bdb63f80f772f9f7fb2f Author: Andika Triwidada Date: Fri Aug 28 13:00:20 2015 +0000 Updated Indonesian translation po/id.po | 196 +++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 103 insertions(+), 93 deletions(-) commit f8341badb87ffc7d48488b95b58efbd1c7747674 Author: K. Adam Christensen Date: Fri Aug 28 08:17:24 2015 -0400 gfileenumerator: Don't leak memory if out_info is NULL In the unusual case where one just wants the filenames, avoid a leak. https://bugzilla.gnome.org/show_bug.cgi?id=754211 gio/gfileenumerator.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 4cbd0d6a602f82f42aa8dc8e83c3daee95134d03 Author: Yosef Or Boczko Date: Thu Aug 27 23:21:08 2015 +0300 Updated Hebrew translation po/he.po | 346 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 178 insertions(+), 168 deletions(-) commit 42331aa15484dc60561a8848d4696a655ba2d22d Author: Fran Dieguez Date: Thu Aug 27 16:47:01 2015 +0200 Updated Galician translations po/gl.po | 173 ++++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 99 insertions(+), 74 deletions(-) commit c061d6995c594c47f718d73b2419547161e92636 Author: Piotr Drąg Date: Wed Aug 26 18:21:34 2015 +0200 Updated Polish translation po/pl.po | 1406 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 697 insertions(+), 709 deletions(-) commit a3f567ad56af4e0c3cad8eab591360609ec94b5a Author: Chao-Hsiung Liao Date: Tue Aug 25 22:54:03 2015 +0000 Updated Chinese (Taiwan) translation po/zh_TW.po | 903 ++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 475 insertions(+), 428 deletions(-) commit 91a6ec8d07eb521fc3f9be3bf7b7ae36a6108c88 Author: Philip Withnall Date: Tue Aug 25 10:49:06 2015 +0100 gutils: Clarify return values of g_bit_nth_[lsf|msf]() Clarify in the documentation that both functions return -1 if no high bits could be found. glib/gutils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit b233d7e324e7661c6a487df9362a6503f0acfea5 Author: Pedro Albuquerque Date: Tue Aug 25 06:22:23 2015 +0000 Updated Portuguese translation po/pt.po | 392 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 198 insertions(+), 194 deletions(-) commit 7da3922d051907ccd9b32de140bab217c7665c02 Author: Dan Winship Date: Fri Aug 21 17:39:44 2015 -0400 gdbus: fix race condition in connection filter freeing If you called g_dbus_connection_remove_filter() on a filter while it was running (or about to be run) in another thread, its GDestroyNotify would be run immediately, potentially causing the filter thread to crash. Fix this by refcounting the filters, and using the existing mechanism for running a GDestroyNotify in another thread in the case where the the gdbus thread is the one that frees it. Also, add a bit of documentation explaining this (and add a related clarification to g_dbus_connection_signal_subscribe()). https://bugzilla.gnome.org/show_bug.cgi?id=704568 gio/gdbusconnection.c | 136 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 95 insertions(+), 41 deletions(-) commit 76c1f78cb92cdbfe46321da2b2d2ecfbfdf32eaa Author: Philip Withnall Date: Mon Aug 24 10:38:27 2015 +0100 gfile: Clarify g_file_get_parent() documentation Clarify that a parent in this case has to be an immediate parent, not an arbitrary ancestor several levels up in the tree. gio/gfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 50a65cc38a68dcb04f57fb492c83878e5238d15b Author: Philip Withnall Date: Mon Aug 24 10:37:51 2015 +0100 gfile: Clarify g_file_get_path() documentation Clarify that the returned path (if non-NULL) is guaranteed to be absolute and canonical, but might still contain symlinks. gio/gfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 02f9e84709b4e4756f3e512dede3430f3538fbf5 Author: Kalev Lember Date: Sat Aug 22 23:13:33 2015 +0200 gdbus: Add a missing include This fixes the build on non-unix platforms, such as win32 where gunixfdlist.h is not included. gio/gdbusmethodinvocation.c | 1 + 1 file changed, 1 insertion(+) commit a6ae52fa132ef2c5468d924945470957a7ef4c42 Author: Michael Catanzaro Date: Fri Aug 21 16:46:33 2015 -0500 docs: Fix a typo finalised -> finalized db8455f07d3d58b8d30d35371c0bbd3e342c8960 added use of both "finalised" and "finalized". We generally use American spelling, so prefer that. glib/gmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d33eae97c99c7dc0df362eba2010ec28ac08058e Author: Philip Withnall Date: Fri Aug 21 15:17:24 2015 +0100 Revert "TODO ban maman" I can’t work git-bz. This reverts commit a228f0ac8031379d3568245e24fb287408cf3a26. docs/reference/gobject/tut_gtype.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a228f0ac8031379d3568245e24fb287408cf3a26 Author: Philip Withnall Date: Wed Aug 19 12:00:00 2015 +0100 TODO ban maman docs/reference/gobject/tut_gtype.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 57d0ec57e43ce9b98a76fc7d07b3b5827481e516 Author: Philip Withnall Date: Tue Feb 24 08:50:53 2015 +0000 docs: Clarify costs of using the generic GObject C closure marshaller The libffi one is slower than type-specific generated ones, but is generally better to use. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gsignal.xml | 3 ++- docs/reference/gobject/tut_howto.xml | 19 +++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) commit e57741791e9bd317a0777ab2eff6b40923f0f854 Author: Philip Withnall Date: Mon Feb 23 15:32:47 2015 +0000 docs: Port GObject concepts to use G_DECLARE_FINAL_TYPE And G_DECLARE_INTERFACE. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gtype.xml | 172 +++++++++++++++++------------------ 1 file changed, 85 insertions(+), 87 deletions(-) commit ab9b52e69ce8d3da9bade6f73468736c7b1cec1a Author: Philip Withnall Date: Mon Feb 23 15:30:57 2015 +0000 docs: General cleanups and rewording in the GObject concepts docs • Remove copies of function declarations from the explanation — if people want those, they can follow links to the reference manual. • Add markup to make C code more defined. • Remove use of first person and irrelevant name dropping. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gobject.xml | 95 ++++++------ docs/reference/gobject/tut_gsignal.xml | 254 +++++++++++++++------------------ docs/reference/gobject/tut_gtype.xml | 163 +++++++++------------ docs/reference/gobject/tut_intro.xml | 23 +-- 4 files changed, 243 insertions(+), 292 deletions(-) commit a86ef242e4f2907ec1399057f194699f2fe28c94 Author: Philip Withnall Date: Thu Feb 19 14:12:50 2015 +0000 docs: Link to the GObject how-to from the GType tutorial So that first-time users don’t fall into the trap of reading about the gory memory layout details of GType and GObject when all they wanted to do was derive a class. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gtype.xml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) commit cd0d605b23f9efe247475ba425f811a513a138db Author: Philip Withnall Date: Thu Feb 19 14:08:43 2015 +0000 docs: Mention g_clear_object() in the GObject tutorial As an alternative to g_object_unref(). https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gobject.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit f9410b16475828f90d27cee58faa3a78a5f181d2 Author: Philip Withnall Date: Thu Feb 19 14:08:03 2015 +0000 docs: Remove pointless copy of GObject headers from tutorial Remove a copy of the refcounting functions from gobject.h from the GObject tutorial. It suffices to link to the functions in the API reference. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gobject.xml | 28 ---------------------------- 1 file changed, 28 deletions(-) commit 92f6325509007aea2022df2d3f618033480f86dd Author: Philip Withnall Date: Thu Feb 19 14:07:20 2015 +0000 docs: Miscellaneous formatting and wording fixes to GObject tutorial Convert a few sections to use the passive voice, and add some more elements. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gobject.xml | 72 ++++++++++++++++------------------ 1 file changed, 33 insertions(+), 39 deletions(-) commit 2aade94fcc768af254e7e169bfabc07477ed7179 Author: Philip Withnall Date: Thu Feb 19 14:05:56 2015 +0000 docs: Update code examples in GObject tutorial Use G_DECLARE_FINAL_TYPE, simplify property handling, and remove some unnecessary braces. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_gobject.xml | 74 +++++++++++----------------------- 1 file changed, 23 insertions(+), 51 deletions(-) commit 42baaa88cd20adcce8767fb124682b1b3bd8b0ec Author: Philip Withnall Date: Fri Feb 20 13:16:08 2015 +0000 docs: Use generic marshallers in GObject how-to examples They’re the new vogue for handling signals. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 01962b4dd1f3ef15e1412a2d1e21ce8e6e68bd1d Author: Philip Withnall Date: Fri Feb 20 13:15:15 2015 +0000 docs: Rename a parameter in a GObject how-to example Make it obvious the parameter is not related to AClass. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit a76242b35ab6809f7582fd06b8b30c05f82b3934 Author: Philip Withnall Date: Fri Feb 20 13:14:08 2015 +0000 docs: Add vfunc NULL checks to GObject how-to examples Not setting a pure vfunc is a programmer error, so can be handled with a g_return_if_fail() rather than needing a g_warning(). https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 42 ++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) commit 82abb80553e0da9dac512822e72f55281a68d38c Author: Philip Withnall Date: Fri Feb 20 13:12:49 2015 +0000 docs: Update interfaces in GObject how-to examples Use G_DECLARE_INTERFACE and G_DEFINE_INTERFACE. Fix a couple of typos. Add some comments to empty functions to make it obvious they’re intentionally empty. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 57 +++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 23 deletions(-) commit ffc248919bc6456a90792a1ea0ecb689b8078791 Author: Philip Withnall Date: Fri Feb 20 13:10:04 2015 +0000 docs: Update instance private data in GObject how-to examples Use get_instance_private(). https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit b88ac15e65bf424db69614b6021865afb79a333b Author: Philip Withnall Date: Fri Feb 20 13:08:34 2015 +0000 docs: Update property handling in GObject how-to examples Be a bit more consistent about property enum numbering. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 41 +++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 19 deletions(-) commit 2e4700d52babcf06ac01243f650ccdf546561812 Author: Philip Withnall Date: Fri Feb 20 13:04:45 2015 +0000 docs: Various wording changes in the GObject how-to • Consistently make all titles sentence case • Fix various typos • Remove an unnecessary footnote • Remove first person phrasing https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 205 +++++++++++++---------------------- 1 file changed, 78 insertions(+), 127 deletions(-) commit f1287a9b2f995b8c7ec228cc3b3418670ef92695 Author: Philip Withnall Date: Fri Feb 20 12:54:05 2015 +0000 docs: Remove commented out sections from GObject how-to Unused, outdated, and unsalvagable. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 402 ----------------------------------- 1 file changed, 402 deletions(-) commit 0344e6cb83b338c8ba23d9ea8aa7a9fffa8d146e Author: Philip Withnall Date: Fri Feb 20 12:51:18 2015 +0000 docs: Add missing elements to GObject how-to Break the text up a little with some formatting. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 57 +++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 24 deletions(-) commit b6b0f5f305eab272192f01bd5adb68adaa31c10b Author: Philip Withnall Date: Fri Feb 20 12:42:52 2015 +0000 docs: Update GObject how-to for G_DECLARE_*_TYPE macros Restructure the section of the how-to which covers the header and source code boilerplate for declaring and defining GObjects to use the new G_DECLARE_*_TYPE macros. Present both final and derivable types. Trim various supporting paragraphs. Rename ‘class functions’ to ‘virtual functions’ to use consistent, modern terminology. https://bugzilla.gnome.org/show_bug.cgi?id=744060 docs/reference/gobject/tut_howto.xml | 283 +++++++++++++++++++++-------------- 1 file changed, 171 insertions(+), 112 deletions(-) commit b6fc1df022a0326e7c36122b1416061bf796c98f Author: Ryan Lortie Date: Tue Oct 1 04:10:46 2013 -0400 GLocalFileInfo: don't content-sniff zero-length files This will prevent attempting to read from some files that appear normal but are really device-like, such as those in /proc and /sys. If we can't stat() the file then don't bother attempting to sniff, either. https://bugzilla.gnome.org/show_bug.cgi?id=708525 gio/glocalfileinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 8f662e72594acf8e7f874f7670d1421af68c7fc6 Author: Ting-Wei Lan Date: Sun May 17 16:25:35 2015 +0800 glocalfileinfo: Support file creation time on FreeBSD and NetBSD FreeBSD and NetBSD have field st_birthtim and st_birthtime in struct stat, respectively, which can be used to get file creation time on supported file systems such as UFS2 and tmpfs. https://bugzilla.gnome.org/show_bug.cgi?id=749492 configure.ac | 2 +- gio/glocalfileinfo.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) commit 60a6ae6f0b84f059e33b8c658ef22c3d933db0a2 Author: Christophe Fergeau Date: Sun Mar 29 17:15:15 2015 +0200 Fix GError leak in g_file_query_writable_namespaces() gvfs commit b358ca "Make sure metadata is always returned by query_writable_namespaces()" changed the query_writable_namespaces vfunc to never return NULL, but the error checking in g_daemon_file_query_writable_namespaces still assumes vfunc failure implies NULL return value and GError set. This causes a memory leak as on failure the GError will be set but the vfunc implementation will have created its own default list so NULL will not be returned, and the GError will never be cleared. This commit directly checks if the GError is set to detect failures, my_error is directly dereferenced in the error block anyway. This also removes an unneeded call to g_file_attribute_info_new(); as the vfunc always returns us a non-NULL GFileAttributeInfoList. https://bugzilla.gnome.org/show_bug.cgi?id=747364 gio/gfile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit fa17536598ac931b811727944d7d74f8f4059820 Author: Matthias Clasen Date: Fri Aug 21 00:43:54 2015 -0400 Code cleanup gio/tests/testfilemonitor.c | 13 ------------- 1 file changed, 13 deletions(-) commit b67dac56e30d8e1ba39d6ddf27ea198cecae6f33 Author: Matthias Clasen Date: Fri Aug 21 00:41:09 2015 -0400 Add a test for cross dir moves This is a test that is described in https://bugzilla.gnome.org/show_bug.cgi?id=742849 gio/tests/testfilemonitor.c | 133 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) commit 3498f29b81b522cf4697ff7384b7538f645a63d4 Author: Matthias Clasen Date: Fri Aug 21 00:08:57 2015 -0400 Test resource filesystem attributes gio/tests/resources.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit d942c64267ec72c19fa1b74050f238041918a479 Author: Matthias Clasen Date: Fri Aug 21 00:01:12 2015 -0400 resource file: Return some filesystem info We now return "resource" as the filesystem type, and state that the filesystem if readonly. gio/gresourcefile.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit 1bfdcc8499f49e197c2f59a94a101b03fad51482 Author: Matthias Clasen Date: Thu Aug 20 23:48:51 2015 -0400 resource file: Add a dummy file monitor This avoids the fallback to polling in GFile, which is unnecessarily expensive for a resource which can never change. gio/gresourcefile.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) commit b995c08bf32cb701b92bd8c98651de2d77cade9e Author: Matthias Clasen Date: Thu Aug 20 22:31:41 2015 -0400 Remove unused files We no longer have GLocalDirectoryMonitor implementations. These files were not included in the build for a while now. gio/inotify/ginotifydirectorymonitor.c | 138 --------------------------------- gio/inotify/ginotifydirectorymonitor.h | 51 ------------ 2 files changed, 189 deletions(-) commit d66e3f57cd5dcc4a2768d40d2a1f1351328ca2fc Author: Matthias Clasen Date: Thu Aug 20 22:30:19 2015 -0400 Add more directory monitoring tests These tests clear up a misunderstanding of mine: Monitoring nonexisting files and directories *does* work with the inotify implementation, it just has a very long timeout for scanning for missing locations, so the test needs to take that into account. gio/inotify/inotify-missing.c | 2 +- gio/inotify/inotify-path.c | 2 +- gio/inotify/inotify-sub.c | 2 +- gio/tests/testfilemonitor.c | 110 ++++++++++++++++++++++++++++++++++++++---- 4 files changed, 103 insertions(+), 13 deletions(-) commit ee31d492d80821ab72d6dd1c8950353ad12d54d0 Author: Matthias Clasen Date: Thu Aug 20 21:10:49 2015 -0400 poll file monitor: Don't reimplement g_strcmp0 We have that function now, so use it. gio/gpollfilemonitor.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) commit 09b618f0a162986e5f449acdb68ed125073f50b0 Author: Matthias Clasen Date: Thu Aug 20 20:16:23 2015 -0400 Avoid a false deprecation gtk-doc misinterprets this comment and marks g_find_program_in_path as deprecated, which it isn't. glib/gutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fa0f51ddf8357f0dbfe1066befb2f73fa639c1e4 Author: Debarshi Ray Date: Thu Jun 25 10:05:53 2015 +0200 fileinfo: Add a G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE attribute This is meant for opaque, non-POSIX-like backends to indicate that the URI is not persistent. Applications should look at G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET for the persistent URI. Examples of such backends could be a portal for letting sandboxed applications access the file-system, or a database-backed storage like Google Drive. In these cases, the user visible file and folder names are different from the real identifiers, used by the backend. So, a request to create google-drive://user@gmail.com/foo/New\ File, would actually lead to google-drive://user@gmail.com/foo/bar on the server even though the user visible name is still "New File". Since the server-defined URI is persistent and sanity-checked by the backend, it is recommended that applications switch to it as soon as possible. Backends will try to keep a mapping from "fake" to "real" URIs, but those are only on a best effort basis. They might not be persistent or have the same guarantees as the "real" URIs. https://bugzilla.gnome.org/show_bug.cgi?id=741602 docs/reference/gio/gio-sections.txt | 1 + gio/gfileinfo-priv.h | 1 + gio/gfileinfo.c | 1 + gio/gfileinfo.h | 14 ++++++++++++++ 4 files changed, 17 insertions(+) commit 4a076032cf6629b3c7bd742ddafae2c9dbbcfab4 Author: Matthias Clasen Date: Wed Aug 19 19:27:58 2015 -0400 More file monitor tests Test regular writes and attribute changes with a file monitor, as well as various file changes under a directory monitor. gio/tests/testfilemonitor.c | 235 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 233 insertions(+), 2 deletions(-)