commit 47e10489c5601feac370465767ce03c4a6dd5942 Author: Matthias Clasen Date: Mon Aug 7 11:13:16 2017 -0400 2.53.5 NEWS | 26 ++++++++++++++++++++++++++ configure.ac | 2 +- meson.build | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) commit 7c97e3d784f7243d6a426f1c5659cbccc6acb139 Author: Simon McVittie Date: Mon Jun 19 12:47:50 2017 +0100 gdbus: Check signature of NameAcquired, NameLost Calling g_variant_get (parameters, "(&s)") when parameters has a signature other than (s) is considered to be a programming error. In practice the message bus (dbus-daemon or a reimplementation) should always send the expected type, but be defensive. (Modified by Philip Withnall to improve type check.) Signed-off-by: Simon McVittie Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=784392 gio/gdbusnameowning.c | 7 +++++++ 1 file changed, 7 insertions(+) commit c53b44edb28b7aec62349a11a8263c488b35b70e Author: Simon McVittie Date: Mon Jun 19 12:41:53 2017 +0100 GBusNameOwnerFlags: Add DO_NOT_QUEUE flag PulseAudio and LibreOffice are among the services that use this flag. Refusing to queue for a name lets you do this transaction, but atomically, avoiding the transient state where you briefly join the queue and then are given the name when its primary owner drops it: result = RequestName(name) if result == IN_QUEUE: ReleaseName(name) result = EXISTS return result (Modified by Philip Withnall to add documentation.) Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=784392 gio/gioenums.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 92f1ba200d48bceec10a9be8f0262c57f7375d02 Author: Simon McVittie Date: Mon Jun 19 12:36:11 2017 +0100 GBusNameOwnerFlags: Note equivalence with D-Bus Specification The implementation passes flags through directly to the RequestName() call, so if any new values break that equivalence, the implementation will have to be changed. Signed-off-by: Simon McVittie https://bugzilla.gnome.org/show_bug.cgi?id=784392 gio/gioenums.h | 2 ++ 1 file changed, 2 insertions(+) commit 05abc6cfce75c28a354fa69212d8e6f38ce4a8b9 Author: Philip Withnall Date: Fri Aug 4 13:46:46 2017 +0100 gio: Fix crash in open URI portal when no callback is provided If no callback is provided, token is never set, but it’s then passed to g_variant_new_string(), which requires a non-NULL input. Fix that by moving all the option handling inside the (callback != NULL) case. Spotted by Coverity (CID #1378714). Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=785817 gio/gopenuriportal.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) commit 31ae2c559810675aae483269f234a349cd933528 Author: Mihai Moldovan Date: Sat Jul 29 09:09:39 2017 +0200 glib-genmarshal: wrap prototypes in G_{BEGIN,END}_DECLS. Since --header --body has been deprecated and replaced with --body --prototypes, the generated body is not wrapped with G_{BEGIN,END}_DECLS any longer. Projects using C++ break due to that. Automatically wrap prototypes individually in G_{BEGIN,END}_DECLS instead. https://bugzilla.gnome.org/show_bug.cgi?id=785554 gobject/glib-genmarshal.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit c4dc30e2a36de57fbf963319b21de935492e5782 Author: Matej Urbančič Date: Mon Aug 7 08:44:11 2017 +0200 Updated Slovenian translation po/sl.po | 3739 +++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 2511 insertions(+), 1228 deletions(-) commit ce46e13fbc7854cf04a3d5b4516c4f3a0339b774 Author: Daniel Mustieles Date: Sat Aug 5 11:56:28 2017 +0200 Updated Spanish translation po/es.po | 867 +++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 535 insertions(+), 332 deletions(-) commit 1782219fb859bab1c5715b3bd1308f15d369d5cf Author: Philip Withnall Date: Fri Aug 4 13:30:10 2017 +0100 docs: Fix typo in GDBusInterfaceSkeleton documentation Signed-off-by: Philip Withnall gio/gdbusinterfaceskeleton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a1fdae8afcb9abe9327a367ffae8deee9c99400f Author: Tim-Philipp Müller Date: Thu Aug 3 19:23:25 2017 +0100 meson: don't error out if xmllint is not found Only needed for glib/tests and entirely optional. glib/tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ad9d5a11f2496d931036c0a507b5e789c5432e5f Author: Philip Withnall Date: Thu Aug 3 16:32:42 2017 +0100 tests: Fix gschema-compile test for translatable string changes Little did I know when making commit c257757cf6774974cf15370ccf09fad7ee855668 that a lot of the output of glib-compile-schemas is string matched in some of the unit tests. Fix them to match the updated strings. Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=695573 gio/tests/gschema-compile.c | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) commit 25c01e1c557e03914f1ae88398f705b1437eea3b Author: Philip Withnall Date: Thu Aug 3 16:31:37 2017 +0100 glib-compile-schemas: Use double quotes rather than single quotes It’s what GLib is standardising on. See bug #772221. Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=695573 gio/glib-compile-schemas.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) commit e02e3540abbe166abd2ae892c92d82f3fda016f2 Author: Daniel Boles Date: Thu Aug 3 14:40:29 2017 +0100 gspawn: Don’t mention removed gdk_spawn functions Mention alternatives that actually still exist instead. https://bugzilla.gnome.org/show_bug.cgi?id=785520 glib/gspawn.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit f591366eee341f2c40516821e8a5a0bc7a9bd288 Author: Daniel Macks Date: Thu Aug 3 12:43:00 2017 +0100 gtest: Handle -s as explicit SKIP instead of inhibiting altogether Improves diagnostics and makes test transcripts easier to compare https://bugzilla.gnome.org/show_bug.cgi?id=769135 glib/gtestutils.c | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) commit f7a14fece4891ea31522ca282807c71ca7f89938 Author: Daniel Macks Date: Mon Jun 16 01:02:49 2014 -0400 Use "-module" when compiling loadable modules Some platforms use different extensions for compile-time linkable libraries vs runtime-loadable modules. Need to use special libtool flag in the latter case for consistency with what gmodule expects. https://bugzilla.gnome.org/show_bug.cgi?id=731703 gio/tests/modules/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 22700faf88bdf7be0bbd8dad658f0d08816a7c51 Author: Philip Withnall Date: Thu Aug 3 11:55:23 2017 +0100 build: Loosen --enable-compile-warnings check Instead of requiring --enable-compile-warnings or --enable-compile-warnings=yes, allow any value which is not ‘no’. This enables compile warnings for --enable-compile-warnings=maximum or --enable-compile-warnings=error, which are common values for other GNOME projects. While we don’t change our behaviour for [yes, maximum, error], at least it means the warnings are enabled now, rather than disabled. Signed-off-by: Philip Withnall configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 96528396064e8fef757b095957fd6c527d9ac78c Author: Philip Withnall Date: Thu Aug 3 11:54:58 2017 +0100 gslice: Fix inline delarations in GSlice Accidentally introduced in commit 5cddde1fb2b8466d8104595008eafabd0728de5d. Signed-off-by: Philip Withnall glib/gslice.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit c257757cf6774974cf15370ccf09fad7ee855668 Author: Philip Withnall Date: Thu Aug 3 11:34:08 2017 +0100 glib-compile-schemas: Improve some translatable strings • Fix capitalisation to be consistent • Use Unicode quotation marks where appropriate • Move trailing \n characters out of the translable strings and append them unconditionally Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=695573 gio/glib-compile-schemas.c | 90 ++++++++++++++++++++++++++-------------------- 1 file changed, 52 insertions(+), 38 deletions(-) commit 94816e10d21ac545f9d0120a07b8c6d5dee0456d Author: Daniel Boles Date: Thu Aug 3 11:30:20 2017 +0100 glib-compile-schemas: Fix typo in newly translatable string gio/glib-compile-schemas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a7aa8acc4896fd359fb947bf7f8645c4caa2b0b8 Author: Jiro Matsuzawa Date: Wed Aug 2 17:19:30 2017 +0200 glib-compile-schemas: Mark missing strings for translation https://bugzilla.gnome.org/show_bug.cgi?id=695573 gio/glib-compile-schemas.c | 86 +++++++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 43 deletions(-) commit f2b6c116295e87d1b74ecae86eda0d1a040b936c Author: Philip Withnall Date: Mon Jul 31 12:16:44 2017 +0100 gstrfuncs: Expand documentation for errno functions Mention that it really is a good idea to save errno before doing literally anything else after calling a function which could set it. Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=785577 gio/gioerror.c | 12 ++++++++++++ glib/gstrfuncs.c | 12 +++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) commit 5cddde1fb2b8466d8104595008eafabd0728de5d Author: Philip Withnall Date: Mon Jul 31 11:30:55 2017 +0100 Consistently save errno immediately after the operation setting it Prevent the situation where errno is set by function A, then function B is called (which is typically _(), but could be anything else) and it overwrites errno, then errno is checked by the caller. errno is a horrific API, and we need to be careful to save its value as soon as a function call (which might set it) returns. i.e. Follow the pattern: int errsv, ret; ret = some_call_which_might_set_errno (); errsv = errno; if (ret < 0) puts (strerror (errsv)); This patch implements that pattern throughout GLib. There might be a few places in the test code which still use errno directly. They should be ported as necessary. It doesn’t modify all the call sites like this: if (some_call_which_might_set_errno () && errno == ESOMETHING) since the refactoring involved is probably more harmful than beneficial there. It does, however, refactor other call sites regardless of whether they were originally buggy. https://bugzilla.gnome.org/show_bug.cgi?id=785577 gio/gcharsetconverter.c | 4 ++- gio/gdbusaddress.c | 7 ++++-- gio/gdbusauthmechanismsha1.c | 33 +++++++++++++++---------- gio/gdbusmessage.c | 3 ++- gio/gdbusserver.c | 9 ++++--- gio/gdocumentportal.c | 5 ++-- gio/gfile.c | 7 +++--- gio/gio-querymodules.c | 5 +++- gio/gio-tool-cat.c | 5 +++- gio/glocalfile.c | 26 ++++++++++++++------ gio/glocalfileinfo.c | 23 +++++++++++++----- gio/glocalfileoutputstream.c | 16 ++++++------ gio/gnetworkmonitornetlink.c | 6 ++--- gio/gopenuriportal.c | 10 +++++--- gio/gsocket.c | 9 ++++--- gio/gsubprocess.c | 46 +++++++++++++++++++++++++---------- gio/gtestdbus.c | 7 ++++-- gio/gunixconnection.c | 15 +++++++----- gio/gunixfdmessage.c | 11 ++++++--- gio/gunixinputstream.c | 11 ++++++--- gio/gunixoutputstream.c | 14 ++++++----- gio/inotify/inotify-kernel.c | 12 ++++++--- gio/tests/dbus-launch.c | 5 ++-- gio/tests/gdbus-peer-object-manager.c | 5 ++-- gio/tests/gdbus-peer.c | 9 ++++--- gio/tests/gdbus-unix-addresses.c | 15 +++++++++--- gio/tests/gsubprocess-testprog.c | 3 ++- glib/gerror.c | 4 ++- glib/giowin32.c | 42 ++++++++++++++++++++------------ glib/gkeyfile.c | 24 ++++++++++++------ glib/gmain.c | 10 +++++--- glib/gslice.c | 4 ++- glib/gtester.c | 4 ++- glib/gtestutils.c | 19 ++++++++++++--- glib/gutils.c | 4 ++- glib/tests/fileutils.c | 5 +++- glib/tests/protocol.c | 6 +++-- tests/gobject/timeloop-closure.c | 8 +++--- tests/mainloop-test.c | 3 ++- tests/spawn-test-win32-gui.c | 9 ++++--- tests/spawn-test.c | 15 ++++++++---- tests/testglib.c | 7 ++++-- tests/timeloop-basic.c | 8 +++--- tests/timeloop.c | 8 +++--- 44 files changed, 336 insertions(+), 165 deletions(-) commit 41a4a70b433fc5a1e7b0c536fdd3d32a9c214219 Author: Ondrej Holy Date: Thu Aug 3 09:50:41 2017 +0200 gunixmounts: Add missing const qualifier for mtab path get_mtab_read_file and get_mtab_monitor_file returns const path, but const qualifier is missing. Let's add it. https://bugzilla.gnome.org/show_bug.cgi?id=779607 gio/gunixmounts.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit 2db36d0d5cef9fb97861f79b1e97fa1c33f1ed59 Author: Ondrej Holy Date: Mon Jul 17 15:53:24 2017 +0200 gunixmounts: Prevent "mounts-changed" race if /etc/mtab is used The /etc/mtab file is still used by some distributions (e.g. Slackware), so it has to be monitored instead of /proc/self/mountinfo in order to avoid races between g_unix_mounts_get and "mounts-changed" signal. The util-linux is built with --enable-libmount-support-mtab in that case and mnt_has_regular_mtab is used for checks. Let's use mnt_has_regular_mtab also to determine which file to monitor. https://bugzilla.gnome.org/show_bug.cgi?id=779607 gio/gunixmounts.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit b267f648d936902e5cad679f2da575bad8bcd1ed Author: Руслан Ижбулатов Date: Sat Jul 29 08:12:40 2017 +0000 glib/gpoll W32: trust WFMOE() return value WaitForMultipleObjectsEx() returns the index of the *first* handle that triggered the wakeup, and promises that all handles with lower index are still inactive. Therefore, don't check them, only check the handles with higher index. This removes the need of rearranging the handles (and, now, handle_to_fd) array, it's enough to take a pointer to the next item and use it as a new, shorter array. https://bugzilla.gnome.org/show_bug.cgi?id=785468 glib/gpoll.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) commit 226ea946853cf4fa340988a8adb8774162acd231 Author: Руслан Ижбулатов Date: Sat Jul 29 08:09:05 2017 +0000 glib/gpoll W32: faster GPollFD lookup Put all ptrs for GPollFDs that contribute handles into an array, the layout of which mirrors the handles array. This way finding GPollFD for a handle is a simple matter of knowing this handle's index in the handles array (which is something we always know). Removes the need to loop through all fds looking for the right one. And, with the message FD also passed along, it's now completely unnecessary to even pass fds to poll_rest() at all. https://bugzilla.gnome.org/show_bug.cgi?id=785468 glib/gpoll.c | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) commit 201977983e237e35b9e640866e71613387fe1ab9 Author: Руслан Ижбулатов Date: Sat Jul 29 08:06:18 2017 +0000 glib/gpoll W32: pass along GPollFD ptr for msg Instead of just indicating that messages should be polled for, save the pointer to GPollFD that contains G_WIN32_MSG_HANDLE, and pass it along. This way it won't be necessary to loop through all fds later on, searching for G_WIN32_MSG_HANDLE. https://bugzilla.gnome.org/show_bug.cgi?id=785468 glib/gpoll.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) commit 1f3da929f5718c24eed67a8e7007f6c39adb441a Author: Руслан Ижбулатов Date: Sat Jul 29 08:04:10 2017 +0000 glib/gpoll W32: fold f->revents = 0 into for() loop GCC most likely optimizes that already, but no harm in trying. https://bugzilla.gnome.org/show_bug.cgi?id=785468 glib/gpoll.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) commit cb2316aaa1adc1f80498141d51467a850cde5fac Author: Руслан Ижбулатов Date: Sat Jul 29 07:56:19 2017 +0000 glib/gpoll W32: use WFSOE() instead of SleepEx() WaitForSingleObjectEx() is supposed to be a more efficient sleep method. It waits on the handle of the current process. That handle will be signaled once the process terminates, and since we're *inside* the process, it'll never happen (and if it does, we won't care anymore). The use of an alertable wait ensures that we wake up when a completion routine wants to run. https://bugzilla.gnome.org/show_bug.cgi?id=785468 glib/gpoll.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit d67b58a9a6799850dd51f38c122682fc8fe5cd5b Author: Alistair Francis Date: Thu Jun 29 14:42:40 2017 -0700 glib/gpoll: Remove if conditional The original ready < nhandles - 1 can be re-written as ready + 1 < nhandles which is the same confition that we are checking on the first itteration of the for loop. This means we can remove the if statement and let the for loop check the code. This also has the side effect of removing an invalid check as WAIT_OBJECT_0 was not subtracted from ready in the if statement. Signed-off-by: Alistair Francis glib/gpoll.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 425a9f5864f69f804f11279b558ff925d421b546 Author: Руслан Ижбулатов Date: Sat Jul 29 07:40:35 2017 +0000 gio: add a simple gpoll performance test for W32 It just creates a number of socket pairs, then triggers read-ready status on these pairs in different patterns (none, one, half, all) and checks how much time it takes to g_poll() those. Also sometimes posts a Windows message and polls for its arrival. The g_main_context_new() is necessary to initialize g_poll() debugging on W32. Measures minimal and maximal time it takes to g_poll(), as well as the average, over 1000 runs. Collects the time values into 25 non-linear buckets between 0ns and 1000ns, and displays them at the conclusion of each subtest. https://bugzilla.gnome.org/show_bug.cgi?id=785468 glib/tests/Makefile.am | 4 + glib/tests/gpoll.c | 624 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 628 insertions(+) commit 8cc99502022944917f5dd78ce1d1427582081396 Author: Alberts Muktupāvels Date: Tue Aug 1 12:18:42 2017 +0300 glib-mkenums: fix parsing of flags annotation https://bugzilla.gnome.org/show_bug.cgi?id=779332 gobject/glib-mkenums.in | 5 +++++ 1 file changed, 5 insertions(+) commit ca69df0f16fd0bda99baf609a8ce9f38e1039f65 Author: Emmanuele Bassi Date: Tue Aug 1 10:11:09 2017 +0100 Revert "glib-mkenums: fix parsing of /*< flags >*/ annotation" This reverts commit 1672678bc48c1c060d1ee6bb3df124b3e4f9ca33. A more comprehensive fix will follow. gobject/glib-mkenums.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 867b5e6f902e945e8a02a3d2d35d698e19f8f892 Author: Christoph Reiter Date: Wed Jul 26 11:26:00 2017 +0200 glib-mkenums: Python2: use locale encoding when redirecting stdout In case of Python 2 and stdout being redirected to a file, sys.stdout.encoding is None and it defaults ASCII for encoding text. To match the behaviour of Python 3, which uses the locale encoding also when redirecting to a file, wrap sys.stdout with a StreamWriter using the locale encoding. https://bugzilla.gnome.org/show_bug.cgi?id=785113 gobject/glib-mkenums.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit a7926117dde57d6408f292b54d9950b3a1f4cb79 Author: Debarshi Ray Date: Wed Jul 26 11:34:02 2017 +0200 gdatetime: Silence -Wmaybe-uninitialized GCC 6.3.1 thinks that tmp is being used uninitialized: gdatetime.c: In function ‘format_ampm’: gdatetime.c:2248:7: warning: ‘tmp’ may be used uninitialized in this function [-Wmaybe-uninitialized] g_free (tmp); ^~~~~~~~~~~~ It is not an actual problem because the code in question is guarded by "if (!locale_is_utf8)" and "#if defined (HAVE_LANGINFO_TIME)", and it does get initialized under those circumstances. Still, it is a small price to pay for a cleaner build and having actual problems stand out more prominently. https://bugzilla.gnome.org/show_bug.cgi?id=785438 glib/gdatetime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 528a1b9288e410f961b012c75d4887da3ad15b2e Author: Piotr Drąg Date: Sat Jul 15 03:42:15 2017 +0200 Use the glib preset for i18n in Meson Preset handles xgettext options for us, and we can rely on Meson to parse LINGUAS. https://bugzilla.gnome.org/show_bug.cgi?id=784965 po/meson.build | 126 +-------------------------------------------------------- 1 file changed, 1 insertion(+), 125 deletions(-) commit b51a0e7c63313ecfc0c6bbb9f2a8d99f193e51ea Author: Debarshi Ray Date: Fri Jul 21 14:37:35 2017 +0200 GApplication: Use a WARNING if dbus_unregister is called by destructor Unlike g_application_register, there is no public API to unregister the GApplication from D-Bus. Therefore, if the GApplication is set up manually without using g_application_run, then neither can the GApplicationImpl be destroyed nor can dbus_unregister be called before destruction. This is fine as long as no sub-class has implemented dbus_unregister. If they have, their method method will be called after destruction, and they should be prepared to deal with the consequences. As long as there is no public API for unregistering, let's demote the assertion to a WARNING. Bravehearts who don't use g_application_run can continue to implement dbus_unregister, but they would have been adequately notified. This reverts commit c1ae1170fa47483b9bcb30de8cd346cbc4fe10e3. https://bugzilla.gnome.org/show_bug.cgi?id=725950 gio/gapplication.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) commit df06dc65501100606ca027d4e85aa5a240305be2 Author: Debarshi Ray Date: Thu Jun 8 20:15:46 2017 +0200 GApplication: Don't call dbus_unregister multiple times https://bugzilla.gnome.org/show_bug.cgi?id=725950 gio/gapplicationimpl-dbus.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit b92e15c75df7ed517bc4b256c710cad5cfa43816 Author: Christoph Reiter Date: Sat Jul 22 20:47:43 2017 +0200 glib-mkenums: fix encoding error when writing files Instead of using NamedTemporaryFile, which doesn't take an encoding in Python 2 use mkstemp() to create a file and open it with io.open(), with a proper encoding set. https://bugzilla.gnome.org/show_bug.cgi?id=785113 gobject/glib-mkenums.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 039c40e6ec96020e568fb6c1e45dc48f3c4fa6de Author: Emmanuele Bassi Date: Fri Jul 21 15:33:37 2017 +0100 Revert "GKeyFile – Add array length annotations to to_data(), get_keys() and get_groups()" This reverts commit fd329f4853f180eb92746f39fc96fd5d91394009. The commit changed the Introspection ABI, and it requires a change in any application using an introspection-based language binding. glib/gkeyfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit bfd307855bd21108c98d72bf4d85a6c632396cde Author: Emmanuele Bassi Date: Fri Jul 21 14:03:05 2017 +0100 meson: Allow toggling internal/system PCRE dependency We don't always want to build GLib with a dependency on the system's PCRE. The Autotools build allows this, and so should the Meson build. glib/meson.build | 2 +- meson.build | 12 +++++++++--- meson_options.txt | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) commit 8962736ba9deb8f6a6b143fce1b6fd692ffaaa21 Author: Debarshi Ray Date: Thu Jul 20 18:57:01 2017 +0200 docs: Encourage applications to define G_LOG_DOMAIN https://bugzilla.gnome.org/show_bug.cgi?id=785130 glib/gmessages.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit fd541c35184f1aba027ac176074fa52c374073cb Author: Emmanuele Bassi Date: Thu Jul 20 15:11:50 2017 +0100 Require Python 2.7 Python 2.7 is the last stable release of the 2.x series, as per PEP 404: http://legacy.python.org/dev/peps/pep-0404/ Python 2.7 is also 7 years old, and maintained until 2020. configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c1ae1170fa47483b9bcb30de8cd346cbc4fe10e3 Author: Debarshi Ray Date: Mon Jun 19 16:16:08 2017 +0200 GApplication: Assert that dbus_unregister was called before destruction Invoking the dbus_unregister virtual method during destruction is problematic. It would happen after a sub-class has dropped its references to its instance objects, and it is surprising to be asked to unexport exported D-Bus objects after that. This problem was masked as a side-effect of commit 21b1c390a3ce1f7e. Let's ensure that it doesn't regress by asserting that dbus_unregister has happened before destruction. Based on a patch by Giovanni Campagna. https://bugzilla.gnome.org/show_bug.cgi?id=725950 gio/gapplication.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) commit be7c3ae611af6b8705319250ca9942e5144be795 Author: Christoph Reiter Date: Mon Jul 17 21:39:31 2017 +0200 meson: set glib_extension in glibconfig.h to match the autotools output https://bugzilla.gnome.org/show_bug.cgi?id=784995 meson.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit cb0c224e94b366872292eada2d2f295e562d8f92 Author: Christoph Reiter Date: Mon Jul 17 21:31:39 2017 +0200 meson: use set_quoted() instead of quoting manually https://bugzilla.gnome.org/show_bug.cgi?id=784995 meson.build | 134 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 67 insertions(+), 67 deletions(-) commit ab6e425574ce2f6aeaeddeee82cbbe7d1bbdd8d4 Author: Christoph Reiter Date: Mon Jul 17 18:33:42 2017 +0200 meson: define G_PID_FORMAT https://bugzilla.gnome.org/show_bug.cgi?id=784995 glib/glibconfig.h.in | 1 + meson.build | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) commit d88d1ba7e844b5493a53dfcdba77d4df3ea1684d Author: Christoph Reiter Date: Wed Jul 19 11:49:04 2017 +0200 glib-mkenums: Don't use FileNotFoundError, it's Python 3 only. https://bugzilla.gnome.org/show_bug.cgi?id=785113 gobject/glib-mkenums.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit c2dace6b8b982ca821edc29501c7635d008a8357 Author: Christoph Reiter Date: Wed Jul 19 11:43:47 2017 +0200 glib-mkenums: Use utf-8 for reading files On Windows open() defaults to ANSI and on Python 2 it doesn't take an encoding. Use io.open() instead which provides the same interface on both Python versions. https://bugzilla.gnome.org/show_bug.cgi?id=785113 gobject/glib-mkenums.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 2ac8079b9414be67a99f736e15383e85da56f7dd Author: Tim-Philipp Müller Date: Wed Jul 19 10:34:45 2017 +0100 meson: fix unit tests and "Invalid byte sequence in conversion input" Check if strerror_r returns a char * and define STRERROR_R_CHAR_P if so, which is needed by g_strerror() since c8e268b https://bugzilla.gnome.org/show_bug.cgi?id=784000 config.h.meson | 3 +++ meson.build | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) commit f8a88a768d976a3bb642c5088634006e1b5e3611 Author: Adrian Perez de Castro Date: Tue Jul 11 22:28:50 2017 +0300 Map G_NOTIFICATION_PRIORITY_HIGH to NOTIFY_URGENCY_NORMAL When using the Freedesktop backend for GNotification, it seems like a better idea to map G_NOTIFICATION_PRIORITY_HIGH to NOTIFY_URGENCY_NORMAL (instead of NOTIFY_URGENCY_CRITICAL) provided that the difference between GNotification's NORMAL and HIGH priorities is minor. Signed-off-by: Adrian Perez de Castro https://bugzilla.gnome.org/show_bug.cgi?id=784815 gio/gfdonotificationbackend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9a31103ebbf3af09fb5fc783491a6fb5dd25b4be Author: Emmanuele Bassi Date: Tue Jul 18 11:56:16 2017 +0100 Add Meson build files to the Autotools dist We should allow building GLib with Meson from an Autotools dist tarball. Makefile.am | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) commit 9424facde289185c7bde4159be6961dba4cb5983 Author: Matthias Clasen Date: Mon Jul 17 16:20:52 2017 -0400 2.53.4 gio/tests/modules/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)