commit f87fd39cf32cfda40dadaf1c8906cfc5c0518b06 Author: Matthias Clasen Date: Mon Oct 26 11:03:24 2015 -0400 2.47.1 NEWS | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- configure.ac | 4 ++-- 2 files changed, 56 insertions(+), 3 deletions(-) commit a036bd38a574f38773d269447cf81df023d2c819 Author: Matthias Clasen Date: Mon Oct 26 13:51:30 2015 -0400 Try to fix the desktop-app-info test This was broken in 2bb898c60f4333. gio/tests/desktop-app-info.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit e93aaeb5333829fb94693223487c5baf77eb251d Author: Rico Tzschichholz Date: Sun Oct 25 19:43:54 2015 +0100 gio: Fix version of "Since" annotation gio/gsocketconnectable.c | 2 +- gio/gsocketconnectable.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 0d4f6afcdf4e342b69383bfc022eed620dd1c3da Author: Rico Tzschichholz Date: Sun Oct 25 19:42:18 2015 +0100 docs: Add index for 2.48 api docs/reference/gio/gio-docs.xml | 4 ++++ docs/reference/glib/glib-docs.xml | 4 ++++ 2 files changed, 8 insertions(+) commit 4dae2d8289afabb59e3889118c392a09efea18a1 Author: Dan Winship Date: Sat Oct 24 10:37:22 2015 -0400 gtask: re-fix tasks-blocking-other-tasks The new "slowly add more task threads" code doesn't fully deal with apps that queue lots and lots of tasks which then block on tasks from their task threads. Fix this by bringing back the "task is blocking other task" check and making sure that such tasks get bumped to the front of the queue. https://bugzilla.gnome.org/show_bug.cgi?id=687223 gio/gtask.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit 556705cb9c826d70c043d67a87d997f82e2a559d Author: Chun-wei Fan Date: Sat Oct 24 11:05:27 2015 +0800 gwin32.c: Fix build on Visual Studio ntdef.h is a header that is normally only shipped with MinGW, not Visual Studio, which broke the build in commit 975cb91. Fix this by including winternl.h, which typedef's the NTSTATUS type in question on both Visual Studio and MinGW/mingw-w64, as well as pre-2008 Visual Studio. Clean up this inclusion part a little bit as well. glib/gwin32.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit af0a47701db53ccf68211582a1e3f31e2836d4f3 Author: Dan Winship Date: Fri Oct 23 11:28:32 2015 -0400 gtypes.h: fix G_MAXUINT64 definition to use G_GUINT64_CONSTANT (Noticed as part of https://bugzilla.gnome.org/show_bug.cgi?id=756550) glib/gtypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 263aac125e3dfe26aebc6ce7bc0ed39889f19933 Author: Dan Winship Date: Fri Oct 23 11:28:03 2015 -0400 .gitignore updates build/win32/vs10/.gitignore | 1 + build/win32/vs9/.gitignore | 1 + gio/tests/.gitignore | 5 ++++- gobject/tests/.gitignore | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) commit 50d704ab8fadf714f814fff9c8091a64cf72beb5 Author: Ignacio Casal Quinteiro Date: Fri Oct 23 10:34:50 2015 +0200 win32: make sure bytes_read/written is set to 0 on error If we fail to PeekMessage or PostMessage we should make sure that the output parameter bytes_read/written is set 0 instead of being left uninitialized. This fixes an assertion in the io channel call where the following invariant is checked: (status == G_IO_STATUS_NORMAL) || (read_size == 0) glib/giowin32.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 3bb8294e00608238c2a28753425c9ce332c2bc0e Author: Víctor Manuel Jáquez Leal Date: Thu Oct 22 10:36:00 2015 +0200 giomodule: return a copy of module name This is a regression from commit 6dedc0. The clients expect to free the received module name, so the function must return a copy. https://bugzilla.gnome.org/show_bug.cgi?id=756952 gio/giomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 144a87a643a619ff82a3acaffa6ac3761bc5db1f Author: Ignacio Casal Quinteiro Date: Thu Oct 22 08:19:19 2015 +0200 Use bin/gio/modules when building with visual studio gio/giomodule.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit 6dedc0364afeafac3bbae7ecbb87249234a4ca85 Author: Ignacio Casal Quinteiro Date: Thu Oct 22 08:18:24 2015 +0200 Factor out a get_gio_module_dir This also fixes some memory leaks on windows gio/giomodule.c | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) commit 31c45cb6aeb06d59b731fb725beeee17ed851475 Author: Robert Ancell Date: Tue Oct 20 15:44:32 2015 +1300 gkeyfile: Handle whitespace after boolean values Ignore trailing whitespace when reading boolean values. Currently it is very easy to manually edit a keyfile to be: [section] key=true_ Where '_' is a space character. g_key_file_get_boolean will read this value as false and this is hard for a user to detect (it will be reported in GError as an invalid value). Trailing whitespace is ignored for numbers for the same reason. This was fixed in 7a45dde4fe64b4f6c6d3ebc54dfb54d106290e9d. https://bugzilla.gnome.org/show_bug.cgi?id=664740 glib/gkeyfile.c | 17 +++++++++++++++-- glib/tests/keyfile.c | 4 ++++ 2 files changed, 19 insertions(+), 2 deletions(-) commit 51ed0f040505914d9be09f01b2b567d69df57ae4 Author: Robert Ancell Date: Tue Oct 20 15:46:01 2015 +1300 gkeyfile: Test that whitespace is allowed after numbers Test that whitespace is allowed after numbers - this was fixed in commit 7a45dde4fe64b4f6c6d3ebc54dfb54d106290e9d. glib/tests/keyfile.c | 4 ++++ 1 file changed, 4 insertions(+) commit 975cb9108543fb5c8b1146f74350ef4c6f1cd888 Author: Sebastian Dröge Date: Tue Oct 20 17:36:33 2015 +0300 win32: Include ntdef.h for NTSTATUS https://bugzilla.gnome.org/show_bug.cgi?id=756875 glib/gwin32.c | 4 ++++ 1 file changed, 4 insertions(+) commit ad0f340c273e3c6bac01bbc1eb41652903150f70 Author: Ignacio Casal Quinteiro Date: Tue Oct 20 16:12:07 2015 +0200 win32: let glib to use the right path separator for the modules gio/giomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2ac7c5a6fb3c4f169ba5b44df762f7dc43504bfa Author: Matthias Clasen Date: Thu Oct 15 15:37:42 2015 -0400 Use -Wl,-znodelete for all our libraries Now that we initialize the quark tables from a constructor, reloading libglib is just as bad as reloading libgobject, so add the linker option to the LDFLAGS for all our libraries. https://bugzilla.gnome.org/show_bug.cgi?id=755609 configure.ac | 6 ++---- gobject/Makefile.am | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) commit bf33f1d98d91e9326f04d56e1c3576baa886ae1d Author: Philip Withnall Date: Sun Oct 18 19:34:44 2015 +0100 docs: Replace Maman in the tutorial with a more meaningful example Change it to a running example of a file viewer application with a file class and various derived classes and related interfaces. Hopefully the reader can relate to this a little better than to their maman. https://bugzilla.gnome.org/show_bug.cgi?id=753935 docs/reference/gobject/tut_gobject.xml | 142 +++---- docs/reference/gobject/tut_gtype.xml | 188 +++++----- docs/reference/gobject/tut_howto.xml | 651 +++++++++++++++++++-------------- 3 files changed, 548 insertions(+), 433 deletions(-) commit 419f57137ad1eaaa34ed41c23b5077642ca5b06c Author: Ryan Lortie Date: Thu Oct 15 15:14:36 2015 +0100 GDateTime test: fix occasional failures We were using the time() library call to get the current time from the system in order to compare it to the time returned by g_date_time_new_now(). Of course, we took care to ensure that the time (in seconds) didn't change in the middle of this process by checking the before and after value of the system time. Unfortunately, the system time as measured by time() was being taken from a less-accurate clock source than the time used by GDateTime. As a result, we could have GDateTime already into the next second while the "seconds" value of the time returned by time() was still in the last one, even when checked "after". Avoid the problem by using the same ultimate source for time -- g_get_real_time(). This is based on a similar patch from Iain Lane, but it uses g_get_real_time() instead of g_get_current_time(). https://bugzilla.gnome.org/show_bug.cgi?id=754994 glib/tests/gdatetime.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 75eaf5091c07572f0bac2756821f228d87916df0 Author: Mikhail Zabaluev Date: Tue Oct 6 01:51:52 2015 +0300 g_main_context_query(): Annotate @n_fds as (in) parameter The default is picked up as (out), which is bogus. https://bugzilla.gnome.org/show_bug.cgi?id=756099 glib/gmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 05aafe2cff5aab63c6c8d51261549b395f54bca6 Author: Mikhail Zabaluev Date: Wed Oct 14 08:10:38 2015 +0300 gtypes.h: Make G_MININTn literals negative This is more friendly to the GIR scanner; with previous definitions, the constant values end up out of range for their stated integer type. https://bugzilla.gnome.org/show_bug.cgi?id=756550 glib/gtypes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 01baf396852bf9e31625260ccba939bf4f539f5e Author: Christian Hergert Date: Thu Oct 15 13:07:27 2015 -0700 sequence: fix style issue in previous commit Use g_assert_true() rather than integer comparison in sequence unit test. glib/tests/sequence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8fccf8e4e3ae87f3c1069270daeb2a59a40bf89d Author: Christian Hergert Date: Thu Oct 15 12:54:09 2015 -0700 sequence: add g_sequence_is_empty() This function provides an O(1) check to determine if a sequence is empty. Compare this to the two following alternatives to perform the same check. O(h): if (0 == g_sequence_get_length (seq)) O(2h): if (g_sequence_get_begin_iter(seq) == g_sequence_get_end_iter(seq)) Where `h' is the height of the tree. https://bugzilla.gnome.org/show_bug.cgi?id=756316 glib/gsequence.c | 20 ++++++++++++++++++++ glib/gsequence.h | 2 ++ glib/tests/sequence.c | 26 ++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) commit 0b84596f6e8dc830e7f90e7501a036a16c7c31e3 Author: Ignacio Casal Quinteiro Date: Thu Oct 15 17:36:33 2015 +0200 gnulib: forgot some changes from HAVE_LONG_LONG_INT to HAVE_LONG_LONG https://bugzilla.gnome.org/show_bug.cgi?id=756382 glib/gnulib/printf-parse.c | 6 +++--- glib/gnulib/vasnprintf.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) commit 212e4232e7520b2e328e3e965ed792e17b12e144 Author: Ignacio Casal Quinteiro Date: Wed Oct 14 12:55:06 2015 +0200 Update gnulib It updates it to the version c5d07ce91a8ad51591154450442fa4376441fdfa As a difference with upstream we need to ensure: * Include "g-gnulib.h" so the methods get the gnulib namespace. * xsize.h uses G_MAXSIZE instead of SIZE_MAX and the methods are marked as static inline. * Some defines are named different from the ones in glib i.e HAVE_LONG_LONG_INT is HAVE_LONG_LONG All the unit tests pass properly with and without --enable-included-printf. It has also been tested on Windows. https://bugzilla.gnome.org/show_bug.cgi?id=756382 glib/gnulib/Makefile.am | 2 + glib/gnulib/printf-args.c | 210 +- glib/gnulib/printf-args.h | 126 +- glib/gnulib/printf-parse.c | 1003 ++++--- glib/gnulib/printf-parse.h | 173 +- glib/gnulib/vasnprintf.c | 6445 +++++++++++++++++++++++++++++++++++++------- glib/gnulib/vasnprintf.h | 68 +- glib/gnulib/verify.h | 279 ++ glib/gnulib/xsize.h | 101 + 9 files changed, 6823 insertions(+), 1584 deletions(-) commit 8ece2de964c01b3428f16766f199b58f0bc67212 Author: Ryan Lortie Date: Tue Sep 29 10:16:52 2015 -0400