commit 34755e6b4efee26f16c13362b96d9166ec0c1d6b
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Sun Mar 11 19:55:47 2012 -0400

    Fix distcheck

 gio/fam/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit ff426c6ddc70b5f7bbed6127d2b525572815bd58
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Sun Mar 11 19:36:09 2012 -0400

    2.30.3

 NEWS |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

commit 2fec30b2033ccf91654eb8c451c875d9bd959afc
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Tue Feb 21 00:25:31 2012 +0100

    Don't rely on /bin/sh

    Another Fedora UsrMove victim !

 glib/tests/utils.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit be130752b43866649beae051b47e66c0ca6b81e6
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Sun Mar 4 20:49:04 2012 -0500

    Fix binding properties of the same object

    This problem was pointed out in bug 639873.
    The patch here is based on Matt Barnes patch,
    I've added a testcase as well.

 gobject/gbinding.c      |    8 +++++---
 gobject/tests/binding.c |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 3 deletions(-)

commit fa161472eb3b77000d0218f689a10fca36629b18
Author: Stefan Sauer <ensonic@users.sf.net>
Date:   Sun Feb 26 21:20:24 2012 +0100

    goption: try to be helpful in goption args/flag checks

    When complaining about ill defined GOptionEntries include the name
    of the option
    group and entry in the warning.

 glib/goption.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

commit bf3b879af044e06cac76ab4a20443bfcec4aa54c
Author: Filippo Della Betta <filippo.dellabetta@telecomitalia.it>
Date:   Thu Feb 16 10:04:50 2012 +0100

    Added better support of G_STRFUNC for Visual Studio platform

    https://bugzilla.gnome.org/show_bug.cgi?id=670128

 glib/gmacros.h |    2 ++
 1 file changed, 2 insertions(+)

commit a30463de8a294fcb595fdc19348bc55b8c11e0c8
Author: Rui Matos <tiagomatos@gmail.com>
Date:   Tue Feb 21 16:42:43 2012 +0100

    gvaluetransform: Fix an infinite loop with GFlagsValue sets with
    the 0 value

    Transforming a GValue holding flags from a GFlagsValue set that
    includes the 0
    value (no flag bits set) into a string would loop until exhausting
    all the
    available memory.

    https://bugzilla.gnome.org/show_bug.cgi?id=670557

 gobject/gvaluetransform.c |    2 +-
 gobject/tests/enums.c     |   16 ++++++++++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

commit 14ddbfc62ad793b010e33648d840924d590add87
Author: Giovanni Campagna <gcampagna@src.gnome.org>
Date:   Mon Feb 13 16:41:20 2012 +0100

    GDataInputStream: don't segfault on async line reads

    If an async line read fails, it returns NULL. In that case, we
    must return NULL before validating the line, or we segfault.

    https://bugzilla.gnome.org/show_bug.cgi?id=658484

 gio/gdatainputstream.c |    3 +++
 1 file changed, 3 insertions(+)

commit 125ceb1d447b75a46edcfb056dab2fd79cab273a
Author: Christophe Fergeau <cfergeau@redhat.com>
Date:   Thu Feb 9 17:59:55 2012 +0100

    Fix g_hash_table_foreach crash with NULL hash table

    When G_DISABLE_ASSERT is not defined, g_hash_table_foreach and
    g_hash_table_find dereferences the hash table argument before
    checking if it's NULL. This causes a crash when one of this function
    is mistakenly called with a NULL argument instead of returning
    with a warning through g_return_if_fail.

 glib/ghash.c |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

commit 649e3880b7970fcaef5bbd2bfda62d99194860a7
Author: Giovanni Campagna <gcampagna@src.gnome.org>
Date:   Thu Nov 17 00:52:59 2011 +0100

    gtimezone: consider a leading : in TZ environment variable

    When set to represent a zoneinfo file, TZ may start with :, therefore
    glib needs to check it and ignore the first char when building the
    resulting filename, or it won't be found.
    Also, the path could be absolute, in which case it is wrong to
    append /usr/share/timezone

    https://bugzilla.gnome.org/show_bug.cgi?id=664237

 glib/gtimezone.c |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

commit 8ac2a93edcda9b9143d025fe15ec74964c500eb5
Author: Ravi Sankar Guntur <ravi.g@samsung.com>
Date:   Sat Feb 4 00:14:56 2012 +0530

    fix memory leak in g_bookmark_file_parse()

    https://bugzilla.gnome.org/show_bug.cgi?id=669334

    Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>

 glib/gbookmarkfile.c |   48
 ++++++++++++++++++++----------------------------
 1 file changed, 20 insertions(+), 28 deletions(-)

commit 0c550d4a61619ab83f571bba2b38e9f55f9ad573
Author: Antoine Jacoutot <ajacoutot@gnome.org>
Date:   Mon Jan 30 16:17:06 2012 +0100

    goption: implement platform_get_argv0() for OpenBSD

    https://bugzilla.gnome.org/show_bug.cgi?id=669024

 glib/goption.c            |   31 ++++++++++++++++++++++++++++++-
 glib/tests/option-argv0.c |    4 ++--
 2 files changed, 32 insertions(+), 3 deletions(-)

commit f6a7a70a1fa628c2aaa9442003ab25697482ccb8
Author: Ryan Lortie <desrt@desrt.ca>
Date:   Wed Jan 25 10:09:09 2012 -0500

    GHash: add note about randomness in hashing

    To clarify our statements about being robust against outside attackers
    degrading the performance of your hashtable.

 glib/ghash.c |    5 +++++
 1 file changed, 5 insertions(+)

commit 1b7050d6a3e47bebaec005b1960ca7cae07b4122
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Tue Jan 24 21:11:13 2012 -0500

    GHashTable: Add a note about hash collisions

 glib/ghash.c |   25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

commit 304595bc656c449f866219ec471454b6da251099
Author: Dan Winship <danw@gnome.org>
Date:   Thu Jan 19 10:39:57 2012 -0500

    g_date_time_format: fix output in non-UTF-8 locales

    In non-UTF-8 locales, the translations and nl_langinfo() return values
    must be converted to UTF-8 before being returned to the caller.
    Likewise, when making a recursive call to expand a format like '%x',
    the format string must first be converted to UTF-8.

    https://bugzilla.gnome.org/show_bug.cgi?id=668250

 configure.ac           |   26 +--
 glib/gdatetime.c       |  573
 ++++++++++++++++++++++++++++--------------------
 glib/tests/gdatetime.c |   63 ++++++
 3 files changed, 412 insertions(+), 250 deletions(-)

commit 02f5d4e13e417f5cdc570b6247b11813fb8fd1b0
Author: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Date:   Fri Mar 9 12:45:41 2012 +0100

    build: link against gthread and gmodule

    When cross-compiling with linaro toolchain 4.6.2, I got several
    linking errors about missing symbols because a couple libraries are
    not linked.

    This patch adds to the LDADD flags the missed libraries.

    This patch applies above the glib-2-30 branch.

    Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>

    https://bugzilla.gnome.org/show_bug.cgi?id=671711

 gio/Makefile.am       |   18 ++++++++++--------
 gio/tests/Makefile.am |    1 +
 tests/Makefile.am     |    2 +-
 3 files changed, 12 insertions(+), 9 deletions(-)

commit b299d2092356fc724c2b70d5b33df68b6a60b02b
Author: Krishnababu Krothapalli <email>
Date:   Thu Mar 1 14:02:18 2012 +0530

    Updated Telugu Translations

 po/te.po | 1049
 ++++++++++++++++++++++++++++++--------------------------------
 1 file changed, 515 insertions(+), 534 deletions(-)

commit 8ec2b1a899d8ccf2494fded0e9a64ce7d9627c54
Author: John Ralls <jralls@ceridwen.us>
Date:   Fri Feb 24 17:04:52 2012 -0800

    [Bug 529806] Cannot build in 64-bit Mac OS X due to libiconv

 glib/gconvert.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 149a7d0a4d584502030eebcf67a4a3e22e99d58d
Author: Peter Kjellerstedt <pkj@axis.com>
Date:   Thu Feb 16 12:17:32 2012 +0100

    Do not fail unit test due to gdb abbreviating strings

    gdb by default will only print strings up to 200 characters. After
    that
    it abbreviates them. This affects the run-assert-msg-test.sh script if
    the path to the glib installation is too long (in our case it was 133
    characters, 132 would still have worked...)

    By having gdb execute "set print elements 0" before printing the
    assert
    string, the limit on maximum number of characters to print is set to
    unlimited.

    Signed-off-by: Peter Kjellerstedt <pkj@axis.com>

    https://bugzilla.gnome.org/show_bug.cgi?id=670218

 tests/run-assert-msg-test.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 045f4f98e84194d2c8b30911bb7658a0fdacce0e
Author: Javier Jardón <jjardon@gnome.org>
Date:   Tue Feb 7 15:37:26 2012 +0100

    docs: Add win32 gio specific api to the docs

 docs/reference/gio/gio-docs.xml     |    2 ++
 docs/reference/gio/gio-sections.txt |   42
 +++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

commit cf644d6b22ce720798f068d3589523bf08ec7887
Author: Swecha Localization Team <localization@swecha.org>
Date:   Mon Feb 6 17:18:55 2012 +0530

    Updated Telugu Translation

 po/te.po | 1774
 ++++++++++++++++++++++++++++++++------------------------------
 1 file changed, 918 insertions(+), 856 deletions(-)

commit ff9476df6ab9f3cc1afaa9308d86c86c32d86419
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Wed Dec 14 16:56:15 2011 +0000

    g_array_free, g_ptr_array_free: decrement refcount if not the last ref

    foo_free is conceptually "worth" one unref; not decrementing the
    refcount here means the GArray or GPtrArray wrapper (but not its
    contents) would leak in the following call sequence:

        p = g_ptr_array_new ();
        g_ptr_array_ref (p);
        g_ptr_array_free (p, TRUE);
        g_ptr_array_unref (p);

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>

 glib/garray.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit e9aae873c64beffaf6f675de6978739f1388c023
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Wed Dec 14 16:53:24 2011 +0000

    GArray, GPtrArray: factor out the actual freeing

    Depending how the array is freed, we may want to free the underlying
    array (the "segment"), the struct wrapper or both.

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>

 glib/garray.c |   57
 +++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 43 insertions(+), 14 deletions(-)

commit e6b8a3da2aa57b8c09bd6f345f3195d6d372faef
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Wed Dec 14 16:46:56 2011 +0000

    g_key_file_get_string_list: don't leak the pieces on error

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>

 glib/gkeyfile.c |    1 +
 1 file changed, 1 insertion(+)

commit 78c358a48d5dadf49577169bbe3a4190615ca9e0
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Tue Dec 13 14:44:18 2011 +0000

    g_data_set_internal: avoid use-after-free if datalist is in dataset

    Removing the last thing in a dataset frees the dataset, and if the
    datalist was in a dataset, we can't safely unlock it after the dataset
    has been freed. Unlock it sooner.

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Matthias Clasen <mclasen@redhat.com>

 glib/gdataset.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

commit 7ddaec08f48296b451f12d47d9275f38eb46c7f3
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Mon Dec 12 18:37:10 2011 +0000

    g_strcompress: check that source is non-NULL rather than just crashing

    Calling this function with a NULL argument is considered to be
    invalid,
    but one of the regression tests does it anyway (to watch it crash),
    which
    seems a good indication that it's expected to be somewhat common.
    Let's check it rather than segfaulting.

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
    Reviewed-by: Matthias Clasen <mclasen@redhat.com>

 glib/gstrfuncs.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

commit 43c18ec7392b3dbdbae7a8056d665e36e44e86a7
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Mon Dec 12 18:35:14 2011 +0000

    GKeyFile: free group comments when the group is removed

    These were leaked. Valgrind was sad.

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>

 glib/gkeyfile.c |    6 ++++++
 1 file changed, 6 insertions(+)

commit 510f221b9e33b4dcbf41c1ff9f0b98bb3b5579a6
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Mon Dec 12 18:34:47 2011 +0000

    g_hmac_get_string: don't allocate and leak an unused buffer

    Also document why we're not actually using the buffer for anything.

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>

 glib/ghmac.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit bc2e3d037955ae4419778bf19edb517ddddb4493
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Mon Dec 12 15:54:50 2011 +0000

    g_hmac_copy: initialize the refcount

    In practice, the uninitialized refcount will typically mean that
    the copy is
    never freed, and leaks.

    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
    Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>

 glib/ghmac.c |    1 +
 1 file changed, 1 insertion(+)

commit 656bbe33aefa614d6804db61c0c2c6f5c94e6bd9
Author: Alexandre Franke <alexandre.franke@gmail.com>
Date:   Mon Dec 12 20:40:31 2011 +0100

    Fix wording

    délai épuisé has been replaced with délai dépassé

 po/fr.po |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 1070726700a38cf1ab97bc7235099d2064768c42
Author: Aleksander Morgado <aleksander@lanedo.com>
Date:   Fri Dec 9 12:11:53 2011 +0100

    gdbus-codegen: fix typo in generated documentation

    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=665858

 gio/gdbus-2.0/codegen/codegen.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 44a1663aa97b9823243851c102ebedd5e24e638a
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Mon Nov 28 17:54:46 2011 +0000

    GDBusConnection: propagate error correctly if flags are inappropriate

    Previously, this would fail the assertion
    "connection->initialization_error != NULL" after the label "out".

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=665067
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: David Zeuthen <davidz@redhat.com>

 gio/gdbusconnection.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit a8ee10cc7d10cfe8e23938b48b22430e10cc01f5
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Wed Nov 23 11:20:15 2011 +0000

    GDBusWorker: continue_writing: initialize flush_async_data if closing

    This was a regression in commits f41178c6c and d0d04c09:
    flush_async_data
    wasn't necessarily NULL in the "don't flush" case.

    Also move initialization of these variables up so that it's
    unconditional, since that's easier to verify than checking
    that each branch gets it right.

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=664617
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>

 gio/gdbusprivate.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

commit d09677881b7e46353dde9fb3b138f8a8b944508d
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Tue Nov 1 18:03:12 2011 +0000

    Add test case for #662395

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>

 gio/tests/Makefile.am              |   10 +
 gio/tests/gdbus-connection-flush.c |  384
 ++++++++++++++++++++++++++++++++++++
 2 files changed, 394 insertions(+)

commit 07217e8721d84cf33b00b0fd27bd2fae9ba870ae
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Tue Nov 1 16:49:36 2011 +0000

    GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe

    These might even make useful public API if they grew a Windows
    implementation, but for now they can be Unix-only test API.

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>

 gio/tests/Makefile.am        |   10 ++-
 gio/tests/gdbus-non-socket.c |  143
 ++++++++++--------------------------------
 gio/tests/test-io-stream.c   |  104 ++++++++++++++++++++++++++++++
 gio/tests/test-io-stream.h   |   53 ++++++++++++++++
 gio/tests/test-pipe-unix.c   |  130
 ++++++++++++++++++++++++++++++++++++++
 gio/tests/test-pipe-unix.h   |   37 +++++++++++
 6 files changed, 365 insertions(+), 112 deletions(-)

commit e5019d2d8516970550aba0ae5f6cfd26de48a5be
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Fri Oct 21 15:21:25 2011 +0100

    _g_dbus_worker_flush_sync: always flush if we need to

    We didn't previously flush in a couple of cases where we should have
    done:

    * a write is running when flush is called: we should flush after it
      finishes

    * writes have been made since the last flush, but none are pending or
      running right now: we should flush the underlying transport straight
      away

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>

 gio/gdbusprivate.c |   43 +++++++++++++++++++++++++++++++++++++------
 1 file changed, 37 insertions(+), 6 deletions(-)

commit d0d04c091aa1453bad69e05fbdd95065965c2950
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Tue Nov 1 19:09:19 2011 +0000

    GDBusWorker: move flush async op into continue_writing()

    This makes it easier to schedule a flush, by putting it on the
    same code
    path as writing and closing.

    Also change message_written to expect the lock to be held, since all
    that's left in that function either wants to hold the lock or doesn't
    care, and it's silly to release the lock immediately before calling
    message_written, which just takes it again.

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>

 gio/gdbusprivate.c |  101
 +++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 68 insertions(+), 33 deletions(-)

commit 210c0c0cd581cdf0af5a691c7e065001bb7be00b
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Fri Oct 21 14:46:47 2011 +0100

    schedule_write_in_worker_thread: require caller to lock; rename
    accordingly

    When we use this function to schedule a flush, it'll be called
    with the lock held. Releasing and immediately re-taking the lock would
    be pointless.

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>

 gio/gdbusprivate.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

commit 628eee1c7dd76d698a43645d510ac236bb34845d
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Fri Oct 21 14:43:44 2011 +0100

    GDBusWorker: rename some functions

    maybe_write_next_message now also closes, and I'm about to make it
    consider whether to flush as well, so its name is increasingly
    inappropriate. Similarly, write_message_in_idle_cb is a wrapper around
    it which could do any of those things.

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>

 gio/gdbusprivate.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

commit 8efe505905efd2e469b92f5436f2ddfaa80770fe
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Mon Nov 21 16:05:39 2011 +0000

    GDBusWorker: distinguish between 3 sorts of output that might
    be pending

    If the user calls flush_sync() with no messages in the queue, but an
    async write call pending, then we ought to flush after that async
    write
    returns (although we don't currently do that). If it was an async
    close
    or flush that was pending, there's no need to flush (again)
    afterwards.
    So, we need to distinguish.

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>

 gio/gdbusprivate.c |   71
 +++++++++++++++++++++++++++++-----------------------
 1 file changed, 39 insertions(+), 32 deletions(-)

commit 439f3b8e540a43b5edccebd8d3acc2444d82fc8c
Author: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Date:   Sun Nov 13 17:49:57 2011 +0100

    Fix 1bit mutex test on platforms with 32 bit aligned pointers

    The 1 bit mutex tests asserts: ((gsize) ptrs) % 8, ==, 0), which fails
    when the platform only aligns porters to 32 bits (e.g. S390 and
    powerpc).

    I'm not sure why this assertion was placed here, but given
    that internally g_pointer_bit_trylock uses g_atomic_int_or internally
    change the assertion so it only requires the alignment to be
    a multiple
    of sizeof(int)

 gthread/tests/1bit-mutex.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit c0541e0f4ae1af9c9f9d6da3ac9252c38935280b
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Fri Nov 11 17:51:30 2011 -0500

    Bump version

 configure.ac |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 179d8ac43f3c23e5712b284f8af9c72f6b26c479
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Fri Nov 11 17:11:31 2011 -0500

    Updates

 NEWS |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

commit 9aa02d9d989ea7440b1c5a62041d038dbf124b50
Author: Benjamin Otte <otte@redhat.com>
Date:   Sun Oct 16 12:58:29 2011 -0700

    docs: Improve g_variant_loop() docs

    Typo fix and changing "is not recommended" to the nice version of
    "don't
    do this", aka "causes undefined behavior".

 gio/glocalfileinfo.c |    5 ++++-
 glib/gvariant.c      |    4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

commit 44ca0df0af5ddc25c4d140efd792f7547317107f
Author: Benjamin Otte <otte@redhat.com>
Date:   Mon Jul 25 13:08:59 2011 +0200

    docs: Tell which function to use to avoid errors.

 glib/gvarianttype.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 4cae0cdc34b60e79956ef3a986eb167061a3bab2
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Mon Nov 7 00:14:28 2011 -0500

    Add a test for CDATA in gschema.xml files

 gio/tests/gschema-compile.c              |    3 ++-
 gio/tests/schema-tests/cdata.gschema.xml |    7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

commit 3c58a4128b3997ae9417e7b38eb1439c1e47e801
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Mon Nov 7 00:13:56 2011 -0500

    Accept CDATA in gschema.xml files

 gio/glib-compile-schemas.c |    1 +
 1 file changed, 1 insertion(+)

commit d3da689c4c3dbeee92ff5c5a3407cb078a2ab546
Author: Dan Winship <danw@gnome.org>
Date:   Fri Oct 14 14:32:11 2011 -0400

    glib-mkenums.in: fix @ENUMPREFIX@ with /*< underscore_name=... >*/

    For enums defined with an underscore_name override, @ENUMPREFIX@
    would include a trailing "_". Fix.

    https://bugzilla.gnome.org/show_bug.cgi?id=661797

 gobject/glib-mkenums.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit e5a644eeece8f7eda8324d98239272ef3d30e1dc
Author: David Zeuthen <davidz@redhat.com>
Date:   Thu Oct 27 10:30:58 2011 -0400

    g_bus_own_name: fix race when unowning a name immediately after
    owning it

    ... and also add a test to verify that the fix works.

    https://bugzilla.gnome.org/show_bug.cgi?id=662808

    Signed-off-by: David Zeuthen <davidz@redhat.com>

 gio/gdbusnameowning.c   |   86
 ++++++++++++++++++++++++++++++++++-------------
 gio/tests/gdbus-names.c |   29 ++++++++++++++--
 2 files changed, 89 insertions(+), 26 deletions(-)

commit e54bc017ea35c3eaf573b776764a781634bfed55
Author: Damien Lespinau <damien.lespinau@gmail.com>
Date:   Mon Oct 24 22:25:59 2011 -0400

    Add TAGS files to .gitignore

    "make tags" is the best way to produce tags in an automake project and
    yet very few people are using it so the tags files it generates
    are never
    added to the .gitignore files.

    Add TAGS files to .gitignore then.

    https://bugzilla.gnome.org/show_bug.cgi?id=615424

 .gitignore |    1 +
 1 file changed, 1 insertion(+)

commit 0fb7f35cc61dd066598bd318785f5405663711c0
Author: Robert Nagy <robert@openbsd.org>
Date:   Mon Oct 24 21:18:48 2011 -0400

    Fix some build issues on OpenBSD

    Adapt to some OpenBSD header quirks.
    Patch by Robert Nagy.

    https://bugzilla.gnome.org/show_bug.cgi?id=661386

 configure.ac |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

commit 20b41db74f61d1c4cd21a29e17a800f13c0b6a9f
Author: Sjoerd Simons <sjoerd@luon.net>
Date:   Fri Oct 21 15:40:56 2011 +0200

    Fix document generation in out of tree builds

    https://bugzilla.gnome.org/show_bug.cgi?id=662390

 docs/reference/glib/Makefile.am    |    2 +-
 docs/reference/gobject/Makefile.am |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 458c8114a68636c2bd0949c6a5987b78441a9486
Author: Ryan Lortie <desrt@desrt.ca>
Date:   Fri Oct 21 15:00:24 2011 -0400

    GVariant format string docs: fix maybe types

    The documentation for maybe types failed to mention 'a' as one of the
    types that was handled with a single pointer for which NULL means
    "nothing".  Correct that omission.

    Problem caught by Shaun McCance.

 docs/reference/glib/gvariant-varargs.xml |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

commit 81c07947291c691fd7b897509cc00771ac21f943
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Sun Oct 16 16:23:18 2011 -0400

    Pass correct data to fatal log handlers

    This was pointed out by John Ralls in bug 653052.
    He also provided the test case.

 glib/gmessages.c     |    2 +-
 glib/tests/logging.c |   58
 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 1 deletion(-)

commit 777f72a15868ccdcf616927a3b7fc92c984303cb
Author: Martin Pitt <martin.pitt@ubuntu.com>
Date:   Wed Aug 17 08:57:15 2011 +0200

    Clarify g_spawn_*() behaviour without full path

    Document the previously uncovered case of calling
    g_spawn_async_with_pipes()
    without a full path but no G_SPAWN_SEARCH_PATH. This runs programs
    from the
    current directory, which might be unexpected and even dangerous in
    some corner
    cases.

    https://bugzilla.gnome.org/show_bug.cgi?id=656621

 glib/gspawn.c |    4 ++++
 1 file changed, 4 insertions(+)

commit b0e82791a36bb2c3ba4b1ee301814a2de5a8fc69
Author: Torsten Schönfeld <kaffeetisch@gmx.de>
Date:   Tue Aug 16 19:11:43 2011 +0200

    Add two annotations to gio

    https://bugzilla.gnome.org/show_bug.cgi?id=656679

 gio/gfile.c     |    2 +-
 gio/gfileinfo.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 6250bb656ed566cbc9f97e58d2c175a5971a25e9
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Tue Oct 4 10:14:35 2011 +0100

    Document that types are limited to 64 KiB

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=659916
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>

 gobject/gtype.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

commit f4bba75f2f6a9609d28a1d2db44cec0230a45f15
Author: Kean Johnston <kean.johnson@gmail.com>
Date:   Sat Oct 15 17:57:23 2011 -0400

    GIOModule: Use G_SEARCHPATH_SEPARATOR_S instead of ":"

    https://bugzilla.gnome.org/show_bug.cgi?id=661257

 gio/giomodule.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9eb5c2d2e4acdaa867d502e716aef7a1fc3a3e15
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Fri Nov 11 14:41:50 2011 +0000

    GDBusWorker: tolerate read errors while closing

    My previous fix for GNOME#662100 was incomplete: it seems that
    with some
    timings, the stream can be closed with an async read in-flight. This
    can make the read fail immediately with G_IO_ERROR_CLOSED instead of
    becoming cancelled.

    This happens reliably on an embedded device, and rarely on my laptop;
    repeating the test 100 times in quick succession reliably reproduces
    the bug on my laptop.

    It seems as though what we really want is to ignore read errors, once
    we've established that we want to close the connection anyway - this
    means that after asking to close, you're immune to exit-on-close,
    which seems like a good rule.

    An additional subtlety is that continuing to read after we know we
    want to close is still required, otherwise we'll never emit ::closed.

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
    Bug-NB: NB#287088
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Colin Walters <walters@verbum.org>

 gio/gdbusprivate.c |   22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

commit b9ef04ecdeaa8fc382a720ff517e2c256002179b
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Thu Nov 10 19:06:43 2011 +0000

    GDBusWorker: debug on read errors if transport debugging is enabled

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
    Bug-NB: NB#287088
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Colin Walters <walters@verbum.org>

 gio/gdbusprivate.c |   13 +++++++++++++
 1 file changed, 13 insertions(+)

commit bcefcf766c9dea3bf6ec09d79ce8349f3bc89108
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Thu Nov 3 18:33:08 2011 +0000

    gdbus-exit-on-close test: don't leak a variant

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
    Bug-NB: NB#287088
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Colin Walters <walters@verbum.org>

 gio/tests/gdbus-exit-on-close.c |    1 +
 1 file changed, 1 insertion(+)

commit 1bf29ab9548b38414bf4edad629871a821b4013d
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Thu Nov 3 18:32:53 2011 +0000

    gdbus-exit-on-close test: optionally be more verbose for debugging

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
    Bug-NB: NB#287088
    Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: Colin Walters <walters@verbum.org>

 gio/tests/gdbus-exit-on-close.c |   28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

commit c55c24ec19260eea5968c039decba55308d98487
Author: Aleksander Morgado <aleksander@lanedo.com>
Date:   Thu Oct 27 16:54:02 2011 +0200

    gdbus: avoid warning when finalizing a GDBusObjectManagerClient

    If the GDBusObjectManagerClient doesn't get a name owner during
    its lifetime,
    `on_control_proxy_g_signal' will never be connected to any signal,
    so we
    shouldn't dump any warning in that case.

    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=662858

 gio/gdbusobjectmanagerclient.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 04423e88f71017e6016b8770acda5c421a6b0cc0
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Mon Oct 24 13:25:15 2011 -0400

    Fix g_hash_table_iter_replace

    When reusing an existing key 'internally', we must avoid calling
    the key_destroy function on the old key.

    https://bugzilla.gnome.org/show_bug.cgi?id=662544

 glib/ghash.c      |   17 ++++++++++++-----
 glib/tests/hash.c |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 5 deletions(-)

commit ad6cb36ee2c9b2d53ce5479aadc9e5ced4566a46
Author: Ryan Lortie <desrt@desrt.ca>
Date:   Fri Oct 21 14:05:10 2011 -0400

    GDBusMessage: fix leak of GError

    As part of the deserialisation process of a zero-length array in the
    DBus wire format, parse_value_from_blob() recursively calls itself
    with
    the expectation of failing (as can be seen by the assert immediately
    following).

    It passes &local_error to this always-failing call and then fails to
    free it (indeed, to use it at all).  The result is that the GError is
    leaked.

    Fix it by passing in NULL instead, so that the GError is never created
    in the first place.

    https://bugzilla.gnome.org/show_bug.cgi?id=662411

 gio/gdbusmessage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 87b2c723f705a2976939a273df54580912103f9f
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   Thu Oct 20 20:02:02 2011 +0100

    GDBusConnection: document use while uninitialized as undefined
    behaviour

    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661689
