commit aea22cb4e5c5cd90f759633dbbd3f5cf0ad6ba73 Author: Matthias Clasen Date: Wed Feb 25 22:08:15 2015 -0500 2.42.2 NEWS | 22 +++++++++++++++++++++- configure.ac | 4 ++-- 2 files changed, 23 insertions(+), 3 deletions(-) commit 9b19ce33385c8b185c95f216bf87197058e15ec1 Author: Philip Withnall Date: Tue Feb 24 10:57:14 2015 +0000 gcancellable: Mention nullability in g_cancellable_cancel() docs Calling g_cancellable_cancel(NULL) is an explicitly allowed no-op, for convenience. Document and annotate that. gio/gcancellable.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 9337b315771c77cf3977f1a71ecdec650c779e3e Author: Philip Withnall Date: Tue Dec 2 15:00:45 2014 +0000 glist: Mention that g_list_length() is bad for checking list emptiness Despite linked lists being a fairly fundamental computer science concept, some developers insist on using: g_list_length (list) > 0 to determine whether a list is non-empty, rather than using: list != NULL Add a comment to the documentation for g_list_length() and g_slist_length() pointing out the better alternative in the hope that it will prevent some of this abuse. https://bugzilla.gnome.org/show_bug.cgi?id=741024 glib/glist.c | 3 ++- glib/gslist.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit b577f5174e8de7b016c5bb85d5fb78e97693067a Author: Ryan Lortie Date: Wed Feb 4 16:29:56 2015 +0100 docs: fix typo in g_settings_new_full() docstring gio/gsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d91d12d1114e6234556251b07235df290218a097 Author: Aurélien Zanelli Date: Tue Feb 3 15:41:05 2015 +0100 gnulib/vasprintf: handle unsigned modifier for long long Otherwise, an unsigned integer will be displayed as a signed one if we use internal printf and if HAVE_LONG_LONG_FORMAT is not defined. https://bugzilla.gnome.org/show_bug.cgi?id=743936 glib/gnulib/vasnprintf.c | 5 +++++ 1 file changed, 5 insertions(+) commit fd07c05f85f1e7d7c74bf11c09e3336075129ff8 Author: Dan Winship Date: Tue Jan 27 07:38:31 2015 -0500 gcredentialsprivate: clarify the USE_FREEBSD_CMSGCRED users Add comments clarifying what the three non-FreeBSD platforms using G_CREDENTIALS_USE_FREEBSD_CMSGCRED are. gio/gcredentialsprivate.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 64611c8b95fc50b11f7a74feb44694a4ae82d9f3 Author: Peeter Must Date: Tue Jan 27 11:34:48 2015 +0900 gcredentials: Add support for DragonFly https://bugzilla.gnome.org/show_bug.cgi?id=743508 gio/gcredentialsprivate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 87bf24352e9c8acd8e38b069ad4a5af9f040034b Author: Ilya Konstantinov Date: Sat Dec 20 11:19:00 2014 -0500 gthread: add thread name support on Mac OS https://bugzilla.gnome.org/show_bug.cgi?id=741807 configure.ac | 10 ++++++++++ glib/gthread-posix.c | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) commit 494e865e540a1ad3f13ac5f3a38fdb5a4901f7bd Author: Philip Withnall Date: Sun Jan 25 17:09:35 2015 +0000 gobject: Fix a typo in a documentation comment gobject/gobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1a6d1ced2f99f6fc205b0aeae0e86f69d6e41d51 Author: Philip Withnall Date: Sun Jan 25 17:09:24 2015 +0000 gthread: Fix a typo in a documentation comment glib/gthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 828a1b082d797729a216a0ee40372f7d0ef9b563 Author: Philip Withnall Date: Sun Jan 25 16:22:43 2015 +0000 gstrfuncs: Document that g_ascii_dtostr() writes a nul terminator And g_ascii_formatd(). Reviewed-by: Ryan Lortie glib/gstrfuncs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 6cc096acbfe161cfbf8f8f7ced0814cd954e9c64 Author: Philip Withnall Date: Fri Jan 16 09:22:21 2015 +0000 gtestutils: Add links to gtester and gtester-report documentation Link some existing text to make cross-referencing a little easier. glib/gtestutils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit db4c85e860ad9370f95b06857dcf17244d0fb030 Author: Philip Withnall Date: Fri Jan 16 09:18:41 2015 +0000 gtestutils: Fix a typo in the g_test_add() documentation glib/gtestutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 69c7d383b434d62021d8febbe9f89cfcc10d1a0b Author: Philip Withnall Date: Fri Jan 16 09:10:46 2015 +0000 gtestutils: Clarify that test fixtures are allocated by GLib Make it a little clearer that the user’s fixture setup and teardown functions don’t have to do the allocation or freeing. glib/gtestutils.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) commit 4714352cf4c0d092d2eea125f381199550c696a4 Author: Philip Withnall Date: Fri Jan 16 09:12:53 2015 +0000 gtestutils: Fix a typo in the g_test_run() documentation glib/gtestutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 75403da00910744e2c3164e02f3553720dbadea1 Author: Philip Withnall Date: Fri Dec 19 21:10:53 2014 +0000 gsettings: Fix a typo in the GSettings documentation https://bugzilla.gnome.org/show_bug.cgi?id=741788 gio/gsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9b70ddc94c2404884194f4d9e25f19ca2f4c0c93 Author: TingPing Date: Sat Aug 16 04:47:46 2014 -0400 Fix GContentType usage https://bugzilla.gnome.org/show_bug.cgi?id=734946 gio/glocalfileinfo.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit c37d690c185c7503a746839d7498641fe880ad1d Author: Matthias Clasen Date: Tue Dec 23 19:49:27 2014 -0500 Fix a typo glib/gdatetime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a770c0c3b635e669039f888c7b9c1012c0b85654 Author: Thomas Haller Date: Wed Dec 17 10:00:35 2014 +0100 gobject: don't use G_STRLOC in G_OBJECT_WARN_INVALID_PSPEC() macro Using G_STRLOC ends up embedding unique strings of the form __FILE__:__LINE__ in the compiled binary. We can avoid these by passing __FILE__ and __LINE__ separately when constructing the warning text. This probably reduces the size of the binary as __FILE__ is likely already contained as string otherwise. Note that for GCC 2.x this changes behavior because G_STRLOC also contained __PRETTY_FUNCTION__. https://bugzilla.gnome.org/show_bug.cgi?id=741654 gobject/gobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit cdf0795e63d3bb310de3db399143b6a9b12fbe31 Author: Philip Chimento Date: Tue Dec 2 12:34:30 2014 -0500 gfile: Explain nonobvious use of my_error In g_file_make_directory_with_parents(), the my_error variable is used for several different purposes throughout the whole function, not all of which are obvious. This explains the situation with some comments. https://bugzilla.gnome.org/show_bug.cgi?id=719455 gio/gfile.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) commit a28220c00bbbc53f52ce8c1e7d2384837a466838 Author: Philip Chimento Date: Tue Dec 3 18:51:51 2013 -0800 gfile: Use g_error_matches Make proper use of g_error_matches() instead of comparing only error codes. https://bugzilla.gnome.org/show_bug.cgi?id=719455 gio/gfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 70784ad1b71078b8ad7e947d71193320b60888b9 Author: Philip Chimento Date: Wed Nov 27 17:43:18 2013 -0800 gfile: make_directory_with_parents race condition A race condition could cause g_file_make_directory_with_parents() to fail with G_IO_ERROR_EXISTS despite the requested directory not existing. https://bugzilla.gnome.org/show_bug.cgi?id=719455 gio/gfile.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 18d618b1c9f8116e371afbe99124470c705b0f33 Author: Ryan Lortie Date: Thu Dec 11 18:49:16 2014 -0500 ghash: minor docs tweak We should not advise people to cast the result of g_hash_table_get_keys_as_array() to a type that looks suitable for use with g_strfreev(). Advise to use (const gchar **) instead. glib/ghash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 90be118de39a83a45f4a687fc71251e8cca5a204 Author: Dan Winship Date: Sun Nov 23 12:33:01 2014 -0500 gio/tests: add a socket-listener test Add a GSocketListener test program. Currently the only test is a regression test for bug 712570 (based on a standalone bug reproducer provided by Ross Lagerwall). gio/tests/.gitignore | 1 + gio/tests/Makefile.am | 1 + gio/tests/socket-listener.c | 166 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 168 insertions(+) commit 0c935d24f421ca056477feccfe6e028cef9811cb Author: Ross Lagerwall Date: Tue Oct 28 21:16:50 2014 +0000 gio: Prevent hang when finalizing GThreadedSocketService If all users of a GThreadedSocketService release their references to the service while a connection thread is running, the thread function will release the last reference to the service which causes the finalize to deadlock waiting for all threads to finish (because it's called from the thread function). To fix this, don't wait for all threads to finish in the service's finalize method. Since the threads hold a reference to the service, finalize should only be called when all threads are finished running (or have unrefed the service and are about to finish). https://bugzilla.gnome.org/show_bug.cgi?id=712570 gio/gthreadedsocketservice.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit 8d58610b1744f0324d81adc18298154b799f93a8 Author: Sebastian Rasmussen Date: Sun Feb 15 19:58:12 2015 +0000 Updated Swedish translation po/sv.po | 3740 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 1961 insertions(+), 1779 deletions(-) commit b2c0f526008fa709af84d6e5699d581688365392 Author: Paolo Borelli Date: Tue Jan 13 12:44:20 2015 +0100 Avoid warning when using G_STMT_END macro with MSVC Workaround found on http://cnicholson.net/2009/03/stupid-c-tricks-dowhile0-and-c4127/ https://bugzilla.gnome.org/show_bug.cgi?id=742851 glib/gmacros.h | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 9c87acc1c284fd2ecec14be220ddbc057399c696 Author: Paolo Borelli Date: Tue Jan 13 13:22:07 2015 +0100 Use G_STMT_START/END in gslice.h glib/gslice.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 824118c207d1838b4b5442a1b83096606e2f2cff Author: Paolo Borelli Date: Tue Jan 13 13:19:58 2015 +0100 Use G_STMT_START/END in gtestutils glib/gtestutils.h | 72 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 27 deletions(-) commit 7d8e19483951216e7840d0a5c228e22e86f55bc2 Author: Chun-wei Fan Date: Wed Jan 7 10:07:25 2015 +0800 Win32: Update Pre-configured Config Headers Update glibconfig.h.win32.in so that it will be in-line with the ones that are produced with configure.ac, for use on Windows builds. Thanks to Philip Withnall for pointing out the changes needed in bug 727829. glib/glibconfig.h.win32.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)