commit 1f341afa9acfb05afb02b73a4dff8992e0464aaa Author: Matthias Clasen Date: Wed Dec 16 09:16:35 2015 -0500 More updates NEWS | 1 + 1 file changed, 1 insertion(+) commit a379a0ad59df0b377bd7b047d2e5a56417252992 Author: Jasper St. Pierre Date: Tue Jul 28 00:14:08 2015 -0700 gapplication: Acquire the main context before running Otherwise, we'll acquire it on every loop iteration, which can leave us vulnerable to racing another thread for the acquisition of the main context. This can break methods like g_main_context_invoke, which try to acquire a context to figure out if it can invoke the method synchronously or need to defer to an idle. In these cases, it isn't guaranteed that the invocation function will be invoked in the default main context, e.g. the one that GApplication is holding. This also matches what GMainLoop is doing. https://bugzilla.gnome.org/show_bug.cgi?id=752983 gio/gapplication.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit 5e73ca974d37ce2cc2204d1fdf0bf13284668963 Author: Matthias Clasen Date: Wed Dec 16 06:30:53 2015 -0500 2.47.4 NEWS | 25 +++++++++++++++++++++++++ configure.ac | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) commit ce985f13f475fbb2b1f8c7d5a1e5ff1fa12a8e81 Author: Руслан Ижбулатов Date: Sat May 2 23:46:06 2015 +0000 Enable contenttype test on W32, tweak it to pass (mostly) * On W32 use a real directory (SYSTEMROOT) instead of '/etc/' * Disable test_symbolic_icon() as it can't be passed (symbolic icons are not really supported) * PowerPoint/Gettext test still fails, presumably because msvcrt qsort() moves the entires (both have the same priority) https://bugzilla.gnome.org/show_bug.cgi?id=735696 gio/tests/Makefile.am | 2 +- gio/tests/contenttype.c | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) commit b86e46e8e7f89f6866cb2fbb917ae00ea9431185 Author: Руслан Ижбулатов Date: Sat May 2 23:27:31 2015 +0000 xdgmime: Finer handling for cases where mmap() is not available Allocate an empty cache object, check cache objects for being empty before using them. Otherwise the code will re-read cache every 5 seconds, as NULL cache does not trigger the code that stores mtime, which makes the cache file appear modified/unloaded permanently. https://bugzilla.gnome.org/show_bug.cgi?id=735696 gio/xdgmime/xdgmimecache.c | 91 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 74 insertions(+), 17 deletions(-) commit 1513efc904cfb42ed5305fd77b40e1c399380d40 Author: Simon Feltman Date: Tue Oct 15 23:26:41 2013 -0700 Add GParamSpec object ref management annotations Add ref-func, unref-func, set-value-func, and get-value-func annotations to GParamSpec so that it can be managed generically as a fundamental type with introspection. https://bugzilla.gnome.org/show_bug.cgi?id=710243 gobject/gparam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 04c56cf6e77488ce7447e7a99afbada4711a8916 Author: Matthias Clasen Date: Wed Oct 7 23:34:42 2015 -0400 gsettings: Don't translate "" The empty msgid is traditionally used to store po file metadata, so calling gettext with an empty msgid is not the right thing to do. https://bugzilla.gnome.org/show_bug.cgi?id=756214 gio/gsettingsschema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 30359e740953b596d6c3d980dba36dd131681a1f Author: Allison Ryan Lortie Date: Mon Nov 30 10:13:46 2015 -0500 file monitors: reorder some code to avoid segfault We must initialise '->source' before we use fields inside of it. https://bugzilla.gnome.org/show_bug.cgi?id=758823 gio/glocalfilemonitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit c2d0c40bffa02a0981c03115179c3373a057f1ec Author: Stanislav Brabec Date: Mon Nov 23 20:47:44 2015 +0100 Fix gettext use gettext() calls inside library have to use gi18n-lib.h. https://bugzilla.gnome.org/show_bug.cgi?id=758553 gio/gresource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4cda92b587232f7d25cab4b7ef7ba043aad8e506 Author: Roman Lebedev Date: Thu Oct 29 14:41:48 2015 +0300 glib-compile-resources: do not leak c_name As per #578363, "if one requests e.g. strings via GOptionEntry.arg_data then those are strduped and needs to be free'ed by the application." Fixes following leak: ================================================================= ==29426==ERROR: LeakSanitizer: detected memory leaks Direct leak of 10 byte(s) in 1 object(s) allocated from: 0 0x7f3ab783d37a in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9437a) 1 0x7f3ab70f7c82 in g_malloc /home/lebedevri/src/glib/glib/gmem.c:94 2 0x7f3ab70f7f60 in g_malloc_n /home/lebedevri/src/glib/glib/gmem.c:330 3 0x7f3ab713258e in g_strndup /home/lebedevri/src/glib/glib/gstrfuncs.c:425 4 0x7f3ab709c86b in strdup_len /home/lebedevri/src/glib/glib/gconvert.c:864 5 0x7f3ab709c966 in g_locale_to_utf8 /home/lebedevri/src/glib/glib/gconvert.c:905 6 0x7f3ab7103c32 in parse_arg /home/lebedevri/src/glib/glib/goption.c:1276 7 0x7f3ab71066fb in parse_long_option /home/lebedevri/src/glib/glib/goption.c:1670 8 0x7f3ab7108047 in g_option_context_parse /home/lebedevri/src/glib/glib/goption.c:1997 9 0x408532 in main /home/lebedevri/src/glib/gio/glib-compile-resources.c:629 10 0x7f3ab6c72b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44) https://bugzilla.gnome.org/show_bug.cgi?id=757299 gio/glib-compile-resources.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 3272267b99670e1bfccf5aebe97ead5e6f8b1bab Author: Christian Hergert Date: Sun Apr 13 17:17:59 2014 -0700 macros: add G_GNUC_CHECK_VERSION() for compiler checks. https://bugzilla.gnome.org/show_bug.cgi?id=728099 docs/reference/glib/glib-sections.txt | 1 + glib/docs.c | 15 +++++++++++++++ glib/gmacros.h | 6 ++++++ 3 files changed, 22 insertions(+) commit 21b1c390a3ce1f7e2816c6309f161c4b92470c46 Author: Allison Ryan Lortie Date: Fri Oct 30 15:39:23 2015 +0000 GApplication: destroy the impl on shutdown It's theoretically possible (and see in the wild) for D-Bus messages to come in to the application after shutdown() has been called and while we're draining out the lingering events in the main context. Prevent this from happening by ensuring we unregister our objects on D-Bus during the shutdown process. https://bugzilla.gnome.org/show_bug.cgi?id=757372 gio/gapplication.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit aa16359986a1cf5a77a70cb4f92e1f99de233572 Author: Ryan Lortie Date: Fri Oct 16 12:36:58 2015 +0100 Stop supporting non-POSIX getpwuid_r, getgrgid_r Bug 13403 introduced support for the non-POSIX variants of these APIs found on a system called "DG/UX". Meanwhile, the complicated checks here are breaking cross-builds on systems that we actually care about. Remove the complicated checks and replace them with AC_CHECK_FUNCS. Remove the resulting dead code from a couple of .c files. https://bugzilla.gnome.org/show_bug.cgi?id=756475 configure.ac | 84 ++-------------------------------------------------- gio/glocalfileinfo.c | 8 ++--- glib/gutils.c | 22 ++------------ 3 files changed, 7 insertions(+), 107 deletions(-) commit c935237e75c4ed770d9efc9e8bd3be109889d994 Author: Marius Gedminas Date: Fri May 8 02:54:00 2015 -0400 glib.py: Fix Python 3 TypeError in gdb pretty-printers https://bugzilla.gnome.org/show_bug.cgi?id=749092 glib/glib.py | 4 ++++ 1 file changed, 4 insertions(+) commit c97729532f54043edb959a2bd2ca6c5df5135658 Author: Paolo Borelli Date: Sun Dec 13 19:32:39 2015 +0100 W32: fix uninitialized var in g_app_info_get_all_for_type Compare with the handler->app, not with the app var which is not initialized yet https://bugzilla.gnome.org/show_bug.cgi?id=759408 gio/gwin32appinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 61136c2c7333a937adb20a4a43f32e66bf89c2f5 Author: Matthias Clasen Date: Mon Dec 14 07:43:24 2015 -0500 Trivial doc comment fix Use the same Since: syntax throughout. glib/gunicode.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit e9c9ff607c024b6daecccb577923c62c0f63cf63 Author: Andrey Gursky Date: Fri Nov 20 03:25:28 2015 +0100 Add missing checks for gnulib vasnprintf() Commit 212e4232e7520b2e328e3e965ed792e17b12e144 introduced a big update of gnulib. Necessary changes to configure.ac from old gnulib commit e8e63d1b31bca6c82713cba490b21a861abb24b5 have been forgotten. Actually available functions are not discovered by autotools. https://bugzilla.gnome.org/show_bug.cgi?id=759134 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b3e0caa3e3a2c06e61f49f62112ca9b7f94840db Author: Sebastian Rasmussen Date: Wed Dec 2 21:12:12 2015 +0000 Updated Swedish translation po/sv.po | 511 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 261 insertions(+), 250 deletions(-) commit 244f9e66f97e37c9a1570e3d975f0d63b34ae4cd Author: Chun-wei Fan Date: Wed Dec 2 21:23:10 2015 +0800 build/win32: Add NMake Makefile module for building tests and introspection This adds a NMake Makefile module that can be used for building tests and introspection using, NMake. This is not yet distributed in the main GLib tarballs, but this is placed here as the base location as this is intended to be used in projects that support Visual Studio builds and support the build of tests and/or introspection under Visual Studio using NMake. build/win32/detectenv-msvc.mak | 76 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) commit 80dcec234c74c073c72bceea9731006b525aa576 Author: Chun-wei Fan Date: Wed Dec 2 21:04:43 2015 +0800 config.h.win32.in: Clean up a bit Remove the HAVE_*INLINE items from here as well, since 'inline' is unconditionally defined in gmacros.h. config.h.win32.in | 17 ----------------- 1 file changed, 17 deletions(-) commit a81568273c2fedf6ac435dcd51731f8e79840694 Author: Emmanuele Bassi Date: Tue Dec 1 12:57:02 2015 +0000 docs: Be more precise on the use of set_resource_base_path() The current wording is a bit vague on when to call set_resource_base_path() in a GApplication implementation. gio/gapplication.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit cfdd4cabe793d897f6dafd61391374099cd5ea1e Author: Chun-wei Fan Date: Mon Nov 30 11:22:17 2015 +0800 glib/glibconfig.h.win32.in: Clean up a bit further Also get rid of the items regarding G_HAVE_*INLINE as they aren't used anymore as they are removed from configure.ac. Thanks to John Emmas and desrt for the earlier patch for getting rid of the C4005 warnings. glib/glibconfig.h.win32.in | 12 ------------ 1 file changed, 12 deletions(-) commit f2fb877ef796c543f8ca166c7e05a434f163faf7 Author: Allison Ryan Lortie Date: Fri Nov 27 11:31:41 2015 -0500 glibconfig.h.win32.in: remove G_CAN_INLINE We now define this unconditionally in gmacros.h. Thanks to John Emmas for the tip. https://bugzilla.gnome.org/show_bug.cgi?id=757374 glib/glibconfig.h.win32.in | 2 -- 1 file changed, 2 deletions(-) commit ec6971b864a3faffadd0bf4a87c7c1b47697fc83 Author: Allison Ryan Lortie Date: Fri Nov 27 11:27:51 2015 -0500 gtypes.h: move G_STATIC_ASSERT to function scope It seems that some compilers get upset if this is done at global scope, so let's move it to function scope where we know it works. glib/gtypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a266ac62ea1e4deb7edd9332b87b29097607d7c7 Author: Allison Ryan Lortie Date: Thu Nov 26 09:25:39 2015 -0500 tests: fix a test on 32-bit builds We were trying to squeeze 64-bit test vectors into gsize, which is fine on 64bit systems but doesn't work very well on 32-bit. Change that to a guint64. glib/tests/overflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 978779044844f9ff793c10395443639cac964e31 Author: Matthias Clasen Date: Wed Nov 25 21:37:13 2015 -0500 GApplication: improve docs Spell out which GVariant format strings to use for which commandline option types. I just wasted some time debugging this in an application. gio/gapplication.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit db641e32920ee8b553ab6f2d318aafa156e4390c Author: Evangelos Foutras Date: Wed Nov 25 23:29:18 2015 +0200 GDBusProxy: Fix a memory leak during initialization https://bugzilla.gnome.org/show_bug.cgi?id=758641 gio/gdbusproxy.c | 1 + 1 file changed, 1 insertion(+)