commit 47d70243fd3f6af8fef99d6e77607eb51d1ec2f0 Author: Matthias Clasen Date: Fri Nov 9 22:32:22 2012 -0500 Updates NEWS | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) commit 49ad4e9494e4497cffcf145d3515231bcf05de29 Author: Sebastian Dröge Date: Wed Oct 24 14:25:01 2012 +0200 Return correct value for g_socket_get_available_bytes() on Windows and OSX https://bugzilla.gnome.org/show_bug.cgi?id=686786 gio/gsocket.c | 15 +++++++++++---- gio/tests/socket.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 4 deletions(-) commit 6589d35391126f018a4e4c3c6b3be79ca228e953 Author: Timothy Arceri Date: Fri Nov 9 23:48:38 2012 +1100 Use url encoding for trash fileinfo path as per freedesktop trash specification https://bugzilla.gnome.org/show_bug.cgi?id=687540 gio/glocalfile.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) commit 46274f6d5a4e6c2a95cdc1637f21be6c2e2aa00f Author: Emmanuel Pacaud Date: Wed Nov 7 09:58:45 2012 +0100 Check for PR_GET_NAME PR_GET_NAME may not be defined when using an old kernel. Deal with it. glib/tests/thread.c | 2 ++ 1 file changed, 2 insertions(+) commit 8195be761c27465d4347573a30c98620e720d957 Author: Colin Walters Date: Tue Nov 6 15:04:47 2012 -0500 tests/buffered-input-stream: Fix size of parameter passed buffer-size is guint, but the public API is gsize for some reason. Tested-By: gustavold@linux.vnet.ibm.com https://bugzilla.gnome.org/show_bug.cgi?id=687801 gio/tests/buffered-input-stream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 545cda4fef466988ce40f4afe6a490ae0d84900a Author: Ryan Lortie Date: Mon Nov 5 12:22:49 2012 -0500 Don't call varargs open() through non-varargs type open() is probably defined varargs. Casting a varargs function to an equivalent non-varargs type and then calling it is undefined, but gfileutils.c was doing exactly that. Add some non-varargs wrappers to avoid the problem. Problem reported by John Spencer. https://bugzilla.gnome.org/show_bug.cgi?id=687600 glib/gfileutils.c | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) commit 9aa447b13ae82bf23b0e804a7ff724b7f4b435a5 Author: Colin Walters Date: Thu Nov 1 19:40:41 2012 -0400 build: Don't use C99 declarations Since GLib needs to compile with MSVC, we can't use them. This fixes compilation when using -Werror=declaration-after-statement. https://bugzilla.gnome.org/show_bug.cgi?id=687385 gio/tests/gdbus-proxy.c | 4 ++-- gio/tests/gdbus-test-codegen.c | 14 +++++++------- glib/gthread-posix.c | 10 ++++++---- glib/tests/gdatetime.c | 3 ++- 4 files changed, 17 insertions(+), 14 deletions(-) commit 759fb92905845dd371c1940ebfe0013158140849 Author: Colin Walters Date: Thu Oct 25 15:34:29 2012 -0400 tests/signals: Disable large enumeration value test that is failing on PPC64 Basically due to a combination of va_args semantics around signed/unsigned ints, this test case fails on ppc64. At the moment, we have as yet to find any real-world consumer with such a large enumeration value. Unfortunately, the possible fixes for this are extremely invasive; we would have to define a new enum API. Given both of these facts, we believe it makes the most sense at the current time to simply not test this. If we at a later time determine there is such a real-world consumer, we can look at doing the necessary fixes. https://bugzilla.gnome.org/show_bug.cgi?id=686662 gobject/tests/signals.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 27aca915879370382815449699573db85956dd54 Author: Will Thompson Date: Tue Oct 30 17:16:33 2012 +0000 GNetworkMonitor: add missing apostrophe to docstring gio/gnetworkmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f51231838b53f6d972a3d05ae4dc2ef862ddc4e5 Author: Vincent Untz Date: Tue Mar 27 16:52:24 2012 +0200 Add annotations for g_filename_from_uri() https://bugzilla.gnome.org/show_bug.cgi?id=672924 glib/gconvert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 30bb8e187aaf509b97b3508546e8a1ca3ecc8a7a Author: John Ralls Date: Fri Nov 9 09:22:19 2012 -0800 Fix pollable streams for Darwin (and probably BSD) Darwin's poll doesn't change revents if there are no available events, though it returns 0. Initialize the fd.revents to 0 so that the test passes. That reveals a test failure, though, because with socket streams it takes time for an event to pass through the socket. Provide an 80-usec delay to allow time for the propagation. gio/gsocket.c | 1 + gio/gunixinputstream.c | 1 + gio/gunixoutputstream.c | 1 + gio/tests/converter-stream.c | 6 ++++++ gio/tests/pollable.c | 3 +++ 5 files changed, 12 insertions(+) commit 6d6d18ae5397a8068d82911b3e77fa8fe9847ba0 Author: John Ralls Date: Thu Nov 8 09:52:28 2012 -0800 Fix compile error about missing prototype For g_nextstep_settings_backend_get_type() gio/gnextstepsettingsbackend.c | 2 ++ 1 file changed, 2 insertions(+) commit d27d3663979b99b8fc83b2eb84eed57b0e851dee Author: John Ralls Date: Thu Oct 18 10:47:18 2012 -0700 Skip test_non_utf8_printf() if EUC-JP is aliased to UTF-8 See https://bugzilla.gnome.org/show_bug.cgi?id=686185 This skips the test on those systems, like Darwin, which provide the ja_JP.eucjp locale but which glib doesn't know how to transcode and aliases JIS to UTF-8. glib/tests/gdatetime.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 1743c8460e6314c2fa7119cf17d7296e3fba13a1 Author: Martin Pitt Date: Fri Nov 9 09:32:03 2012 +0100 GByteArray: Add missing transfer annotations Make g_byte_array_new() and g_byte_array_new_take() introspectable by adding missing transfer annotations to return value. Covered by tests in PyGObject. Cherry-picked from trunk commit a07a5f82aaf. glib/garray.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit e10e97fa9d698d602908078ab24aa95e86e9b9b8 Author: Martin Pitt Date: Fri Nov 9 09:02:22 2012 +0100 GBytes: Add missing annotations Annotate g_bytes_new*()'s data argument to be a guint8 array, as introspection clients cannot deal with raw gconstpointers. This makes GBytes' behaviour similar to GByteArray whose API already uses guint8. Add missing transfer annotation to g_bytes_get_data() to make it introspectable. This is covered by test cases in PyGObject. glib/gbytes.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit b600ca001d7e0987ad91705e5f3db14e5330e180 Author: Chun-wei Fan Date: Mon Nov 5 12:31:44 2012 +0800 Visual C++ 2010 projects: Prepare support for VS2012 Add the PlatformToolset tag to the project configs so that we can use add a simple script later to the autotools files to copy the projects and change the value (v100 -> v110) of that tag (and other simple changes) in order that we can quickly provide and maintain support for Visual Studio 2012 with minimal effort. Note that at the moment GLib does not yet support the API/SDK requirements for Windows 8 Modern UI (formerly known as Metro), but this paves the very initial step. build/win32/vs10/gio.vcxprojin | 4 + build/win32/vs10/glib-compile-resources.vcxproj | 4 + build/win32/vs10/glib-compile-schemas.vcxproj | 356 +++++++++--------- build/win32/vs10/glib-genmarshal.vcxproj | 340 ++++++++--------- build/win32/vs10/glib.vcxprojin | 8 + build/win32/vs10/gmodule.vcxproj | 402 +++++++++++---------- build/win32/vs10/gobject.vcxprojin | 4 + build/win32/vs10/gresource.vcxproj | 4 + build/win32/vs10/gsettings.vcxproj | 356 +++++++++--------- .../win32/vs10/gspawn-win32-helper-console.vcxproj | 344 +++++++++--------- build/win32/vs10/gspawn-win32-helper.vcxproj | 344 +++++++++--------- build/win32/vs10/gthread.vcxproj | 376 +++++++++---------- build/win32/vs10/install.vcxproj | 300 +++++++-------- build/win32/vs10/testglib.vcxproj | 340 ++++++++--------- 14 files changed, 1621 insertions(+), 1561 deletions(-) commit 8ffa4b63383e3aaa1eaa992c9589e6bca43ff691 Author: Simon Feltman Date: Sat Nov 3 18:59:25 2012 -0700 Add array length annotation to GSignalQuery param_types field https://bugzilla.gnome.org/show_bug.cgi?id=687541 gobject/gsignal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 1061b0ddbc8774d7269b98725b30875bce63bcc4 Author: Martin Pitt Date: Sat Nov 3 13:52:29 2012 +0100 Annotate g_filename_to_utf8() bytes_read and bytes_written are (out) arguments, and the return value must be a byte array instead of utf8, as otherwise the function would only support UTF-8 locales/file names. glib/gconvert.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 11f26aafc29150363366ae44dde1c4570105572d Author: Simon McVittie Date: Sun Oct 21 23:38:31 2012 +0100 Use the FreeBSD credentials-passing code on Debian GNU/kFreeBSD The __FreeBSD__ macro means we have both a FreeBSD kernel and FreeBSD libc, which isn't the case on GNU/kFreeBSD (GNU libc and userland on the FreeBSD kernel), so it predefines a different macro. The kernel is what actually matters for credentials-passing, though. Signed-off-by: Simon McVittie Tested-by: Steven Chamberlain Bug: https://bugzilla.gnome.org/show_bug.cgi?id=649302 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581750 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631968 Reviewed-by: Dan Winship gio/gcredentials.c | 18 +++++++++--------- gio/gunixcredentialsmessage.c | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) commit e8080750a71f503165777bd2e2017501e9f6232a Author: Ryan Lortie Date: Mon Oct 29 09:09:49 2012 +0100 g_dbus_connection_export_menu_model(): fix a crash Add some extra protection when 'preparing' a group that doesn't yet contain any menus. This can happen if you subscribe to a group that doesn't yet exist. It was possible to crash any application using g_dbus_connection_export_menu_model() by requesting a non-existent subscription group over the bus. In practice this only happened in races -- where the proxy sees a group that exists and queries it, but by the time it does, it's already gone. https://bugzilla.gnome.org/show_bug.cgi?id=687089 gio/gmenuexporter.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit ce3c5fe747e0d06d1d717f3632e396ae6daa7418 Author: Matthew Barnes Date: Fri Oct 26 13:20:29 2012 -0400 Fix typo in G_TEST_DBUS. (cherry picked from commit 7db2ac7b88a4d2211894153212e92ea9db5cacbb) gio/gtestdbus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3ccd3b204c0619be34a8eae199b6464b6e45b4ac Author: Martin Pitt Date: Thu Oct 25 14:55:30 2012 +0200 GIOChannel: Add missing annotations The various read and write methods have several out arguments which were not previously marked as such. Also, as GIOChannel supports binary data with a NULL encoding, the buffers need to be uint8 arrays instead of utf8 strings. glib/giochannel.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) commit 9e05d0342029786528588a91cc8dc553d3287cb3 Author: Martin Pitt Date: Thu Oct 25 07:51:40 2012 +0200 GIOChannel: Add missing (allow-none) annotations g_io_channel_set_line_term() and g_io_channel_set_encoding() can get NULL arguments, mark them as such. glib/giochannel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit bab186e66a9e75e16f7534526eced0f521b12b24 Author: Matthias Clasen Date: Tue Oct 16 21:16:50 2012 -0400 Add a test for the previous fix Running tests/bytes with G_SLICE=always-malloc MALLOC_CHECK_=2 was aborting before. glib/tests/bytes.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 969dd0adf3893206320906369a133369f1dc4864 Author: Matthias Clasen Date: Tue Oct 16 21:07:13 2012 -0400 GBytes: deal with a corner-case When calling g_bytes_unref_to_data on a GBytes with NULL data we could end up with double-free or use-after-free issues. https://bugzilla.gnome.org/show_bug.cgi?id=686091 glib/gbytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3766b7b5cd0f22d2773c7efc8b52fc2f214d0372 Author: Ryan Lortie Date: Tue Oct 16 12:27:12 2012 -0400 GMenuExporter: allow NULL bus on _name_vanished GBusNameVanishedCallback is called with a NULL GDBusConnection in the case that the connection has vanished. We were doing an assert to verify that it was the same as we had exported the menu on and that assert was failing. https://bugzilla.gnome.org/show_bug.cgi?id=685995 gio/gmenuexporter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit ce92bea73571791f60762b2bb66e28e603543570 Author: Dan Winship Date: Tue Oct 16 10:22:56 2012 -0400 g_socket_connection_connect_async: handle cancellation g_socket_connection_connect_finish() was returning TRUE when the connection attempt got cancelled. Fix that by using g_simple_async_result_set_check_cancellable(). (Git master doesn't have the bug because GTask behaves that way by default.) https://bugzilla.gnome.org/show_bug.cgi?id=686213 gio/gsocketconnection.c | 2 ++ 1 file changed, 2 insertions(+) commit 0a9881d9f2452a52c13ee0882715111c32efb625 Author: Matthias Clasen Date: Mon Oct 15 21:51:55 2012 -0400 Bump version configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)