commit 5b4da74bc75b91a1eac7c9b7eac39bf543ab7b6b Author: Matthias Clasen Date: Wed May 4 20:45:46 2011 -0400 More distcheck fixes gio/gdbus-codegen/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit d5d4659a60ed682d67bbfba853bfa62f221e1e3b Author: Matthias Clasen Date: Wed May 4 19:44:05 2011 -0400 Try to fix distcheck gio/tests/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 6ea2291573a554eb15e1653c0dd8f0503edec9b7 Author: Matthias Clasen Date: Wed May 4 14:53:08 2011 -0400 Pre-release bump configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5b45c39b4b02f4f5c4665b505fb1cf3e84d0b6e8 Author: Matthias Clasen Date: Wed May 4 14:33:03 2011 -0400 Updates NEWS | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 68 insertions(+), 0 deletions(-) commit c0623501592eb484da46e76a1e1b0370c527f61b Author: Ray Strode Date: Wed May 4 12:45:22 2011 -0400 gdbus-codegen: don't assert non-negativity for unsigned values The code generator sprinkles a few asserts in its output of the form: g_assert (prop_id - 1 >= 0 && prop_id - 1 < %d);\n prop_id is unsigned, though, so this generates a compiler warning for me. This commit changes the code to merely check for prop_id != 0 instead of prop_id - 1 >= 0 gio/gdbus-codegen/codegen.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit e823ba10d3babd5ae61c69d96379ff34e9e978f8 Author: Ryan Lortie Date: Wed May 4 18:12:31 2011 +0200 GVariant: Better handling of invalid UTF-8 g_variant_new_string() hits a g_return_if_fail() when given invalid UTF-8. That's certainly the right thing to do, but g_variant_builder_add() uses this function internally and crashes when it returns NULL due to the user passing a non-utf8 string. We can protect the internal code by returning "[Invalid UTF-8]" in this case while also making the problem easier to debug (and less fatal). Closes #632631. glib/gvariant.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit d97cbc6731deab137770bc0fe9c69b06f689f5b4 Author: Alexander Larsson Date: Wed May 4 13:54:34 2011 +0200 gdbus-codegen: Make sure we pass -Werror _g_value_equal might not always be used, so mark it G_GNUC_UNUSED to make sure we're -Werror clean. gio/gdbus-codegen/codegen.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 985fd99e06469e7f64b2bbcf37b03ea14c4a30dc Author: Kjartan Maraas Date: Wed May 4 11:06:44 2011 +0200 Updated Norwegian bokmål translation po/nb.po | 833 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 422 insertions(+), 411 deletions(-) commit 1ab29b6c4a2ddf5a60b4cc353422d605197b7696 Author: David Zeuthen Date: Wed May 4 03:37:46 2011 -0400 GDBusObjectManagerServer: Allow setting :connection property .. and add a C setter to do this. Also make the C getter return a reference since the property may be set from another thread. Also change the constructor to _not_ take a GDBusConnection since this is something you almost always want to do _after_ creating it. The API/ABI break is fine as there has never been a GLib release with this type. https://bugzilla.gnome.org/show_bug.cgi?id=648959 Signed-off-by: David Zeuthen docs/reference/gio/gio-sections.txt | 1 + gio/gdbusobjectmanagerserver.c | 266 +++++++++++++++++------- gio/gdbusobjectmanagerserver.h | 5 +- gio/gio.symbols | 1 + gio/tests/gdbus-example-objectmanager-server.c | 5 +- gio/tests/gdbus-test-codegen.c | 14 ++- 6 files changed, 217 insertions(+), 75 deletions(-) commit 542215b78ac52ffb96386ef63ee782981a1b8e49 Author: Colin Walters Date: Tue May 3 16:31:34 2011 -0400 Rename g_unix_pipe_flags to g_unix_open_pipe From IRC discussion, people liked this name more. https://bugzilla.gnome.org/show_bug.cgi?id=649322 docs/reference/glib/glib-sections.txt | 2 +- gio/gcancellable.c | 2 +- glib/glib-unix.c | 8 ++++---- glib/glib-unix.h | 6 +++--- glib/glib.symbols | 2 +- glib/gmain.c | 4 ++-- glib/tests/unix.c | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) commit ba5c9bd39f070acabee81c630ae2cbe678f1a99e Author: Matthias Clasen Date: Tue May 3 19:15:46 2011 -0400 Remove extraneous decorations Since in a doc comment takes no leading '@'. glib/gtestutils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 511070fb2803c799b953ac938b81c79c5e1036f8 Author: Colin Walters Date: Tue May 3 16:22:13 2011 -0400 glib-unix.c: Don't leak FDs if pipe2() succeeds glib/glib-unix.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit e5c986cbcf34f15397ab2032453cc4220ce480e4 Author: Matthias Clasen Date: Tue May 3 12:41:11 2011 -0400 Only remove the lines that are no longer needed tests/Makefile.am | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 5d1aba24648adf7432391f725599d4a19727ece9 Author: Matthias Clasen Date: Tue May 3 12:37:45 2011 -0400 Revert "[build] Remove stale LDADD lines from tests/Makefile.am to allow build" This reverts commit b0874ce28e910121fb2d94f6f9183bfdc08e8eaf. tests/Makefile.am | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) commit 11bb78105dc2effcfe9c48365fa2e295fb48ee38 Author: Colin Walters Date: Tue May 3 10:57:22 2011 -0400 Use g types in public API for consistency glib/glib-unix.h | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit c078223b388939f3f7cb77bdaa8b60aad0713756 Author: Colin Walters Date: Mon May 2 15:42:51 2011 -0400 GCancellable: Use g_unix_pipe_flags with FD_CLOEXEC The old code was creating a pipe and setting FD_CLOEXEC non-atomically. https://bugzilla.gnome.org/show_bug.cgi?id=649225 gio/gcancellable.c | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-) commit ed37970a0405b5681bcd6449d4dc1b4f9080c4fa Author: Colin Walters Date: Tue May 3 09:52:10 2011 -0400 g_unix_set_fd_nonblocking: New API to control file descriptor blocking state And use it in relevant places in GLib. https://bugzilla.gnome.org/show_bug.cgi?id=649225 gio/gcancellable.c | 27 +++++---------------------- gio/gsocket.c | 17 ++++++++--------- glib/glib-unix.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ glib/glib-unix.h | 4 ++++ glib/glib.symbols | 1 + glib/gmain.c | 2 +- 6 files changed, 69 insertions(+), 32 deletions(-) commit e08e70e08d65e2fce142491a6c8fc6068c8008d2 Author: Colin Walters Date: Mon May 2 17:02:16 2011 -0400 glib-unix.h: Unconditionally include unistd.h danw points out it's part of POSIX. https://bugzilla.gnome.org/show_bug.cgi?id=649201 glib/glib-unix.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit e56498ee0b1bdac0ad3c18a1f7bff83d4a5b1323 Author: Dan Winship Date: Sun May 1 11:17:14 2011 -0400 Fix usage of _GNU_SOURCE _GNU_SOURCE must be defined before including any other (system) header, so defining it in glib-unix.h (and hoping no one has included anything else before that) is wrong. And the "#define _USE_GNU" workaround for this problem in gnetworkingprivate.h is even wronger (and still prone to failure anyway due to single-include guards). Fix this by defining _GNU_SOURCE in config.h when building against glibc. In theory this is bad because new releases of glibc may include symbols that conflict with glib symbols, which could then cause compile failures. However, most people only see new releases of glibc when they upgrade their distro, at which point they also generally get new releases of gcc, which have new warnings/errors to clean up anyway. https://bugzilla.gnome.org/show_bug.cgi?id=649201 configure.ac | 6 ++++-- gio/gfile.c | 1 - gio/glib-compile-schemas.c | 1 - gio/glocalfileinfo.c | 1 - gio/gnetworkingprivate.h | 22 ++++------------------ gio/gsettings.c | 1 - gio/gunixcredentialsmessage.c | 2 -- gio/gunixfdlist.c | 2 -- gio/libasyncns/g-asyncns.h | 2 -- gio/tests/gdbus-peer.c | 2 ++ glib/glib-unix.h | 8 -------- glib/gmain.c | 15 --------------- glib/gprintf.c | 4 ---- glib/gqsort.c | 1 - glib/gslice.c | 2 +- glib/gstrfuncs.c | 2 -- 16 files changed, 11 insertions(+), 61 deletions(-) commit 33c0877adc681cb7cf8cf12afd94a9de8c869bf2 Author: Dan Winship Date: Mon May 2 17:06:37 2011 -0400 Add back an erroneously-removed line to tests/Makefile.am tests/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit e71fdf6b5a88cc1f47f4cc12bab10c6e8953efae Author: Colin Walters Date: Fri Apr 29 10:59:42 2011 -0400 Drop translated g_warning/g_error http://mail.gnome.org/archives/desktop-devel-list/2011-March/msg00069.html gio/gdbusmethodinvocation.c | 6 +++--- gio/gdbusproxy.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) commit 597ede957a4783b72a7037497f6f2e775285df3a Author: Ray Strode Date: Mon May 2 12:33:36 2011 -0400 glib/Makefile.am: add gmain-internal.h to sources It's a new private header. This commit adds it to the Makefile so it's properly distributed with the sources. glib/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 02877e29020c2a0f34283435ecf544b1f6793077 Author: Benjamin Otte Date: Mon May 2 19:22:25 2011 +0200 gobject: Warn if someone uses the wrong property in g_object_get/set "Interface::property" was not detected before and led to a crash. gobject/gobject.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 331e15b1284cd6fd5804a7495d2882ee97148c0a Author: Abduxukur Abdurixit Date: Mon May 2 18:29:59 2011 +0200 Added UG translation po/ug.po | 7552 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 3765 insertions(+), 3787 deletions(-) commit bdc23c44e8fbb507e14056a05e38b92982df7a5f Author: Dan Winship Date: Mon May 2 11:45:52 2011 -0400 Fix compiler warnings glib/gdate.c | 2 +- glib/ghash.c | 2 +- glib/gutf8.c | 4 --- glib/tests/gvariant.c | 1 + gobject/gclosure.c | 2 + gobject/gobject.c | 52 ++++++++++++++++++++--------------------- gobject/testgobject.c | 2 + gobject/tests/dynamictests.c | 3 ++ gobject/tests/threadtests.c | 7 ++--- tests/refcount/objects.c | 2 +- tests/refcount/objects2.c | 2 +- tests/refcount/properties.c | 4 --- tests/refcount/properties2.c | 2 +- tests/refcount/signals.c | 2 +- 14 files changed, 42 insertions(+), 45 deletions(-) commit 6f711a76cdd7eac3914542232526111a7b6bb053 Author: Dan Winship Date: Mon May 2 11:44:46 2011 -0400 Fix autoconf 2.68 warnings autoconf 2.68 is very insistent that AC_LANG_SOURCE/AC_LANG_PROGRAM must be used in certain places, to avoid quoting/lack-of-quoting problems, or something. Fix. configure.ac | 60 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 30 insertions(+), 30 deletions(-) commit c1d61f197137a0dda6b1894984114ed2ed4171ea Author: Behdad Esfahbod Date: Mon May 2 11:43:02 2011 -0400 Bug 648966 - Update g_unichar_iswide and g_unichar_iswide_cjk Add tests. glib/tests/utf8-misc.c | 91 +++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 87 insertions(+), 4 deletions(-) commit b0874ce28e910121fb2d94f6f9183bfdc08e8eaf Author: Behdad Esfahbod Date: Mon May 2 11:26:01 2011 -0400 [build] Remove stale LDADD lines from tests/Makefile.am to allow build Automake 1.11 wasn't happy. tests/Makefile.am | 35 ----------------------------------- 1 files changed, 0 insertions(+), 35 deletions(-) commit 181763438a6be7791ef87c63fa119f74b44aeede Author: Dan Winship Date: Mon May 2 09:53:59 2011 -0400 Update .gitignores .gitignore | 1 + gio/.gitignore | 1 + gio/gdbus-codegen/.gitignore | 2 ++ gio/tests/.gitignore | 4 ++++ glib/.gitignore | 1 + glib/tests/.gitignore | 3 +++ gobject/.gitignore | 1 + gthread/tests/.gitignore | 1 + 8 files changed, 14 insertions(+), 0 deletions(-) commit f4cff2b923dd4df811327c9f199614dbfcbfe436 Author: Matthias Clasen Date: Sun May 1 23:02:53 2011 -0400 Some documentation additions docs/reference/gio/gio-sections.txt | 4 ++++ gio/gdbusobjectproxy.c | 16 ++++++++++++++-- gio/gdesktopappinfo.c | 18 ++++++++++++------ 3 files changed, 30 insertions(+), 8 deletions(-) commit ddcb095fb22b6b3c865bbe3a86af6cadca4c8131 Author: Matthias Clasen Date: Sun May 1 20:43:04 2011 -0400 Avoid an unused variable warning Also, clean up some whitespace glib/tests/keyfile.c | 355 +++++++++++++++++++++++++------------------------- 1 files changed, 179 insertions(+), 176 deletions(-) commit ef5d4d55fe76b71edaf83999ca7408121a5439fa Author: Matthias Clasen Date: Sun May 1 17:07:46 2011 -0400 Fix make check g_thread_init() causes a hash table to be allocated (in read_aliases). Since hash tables are now a bit larger, we need to bump one of the probe sizes to avoid our probe slice being used for the aliases hash table. tests/slice-threadinit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a84637377ca81fe53bff1f694c7364eda21b88c9 Author: Abduxukur Abdurixit Date: Sun May 1 20:04:51 2011 +0200 Added UG translation po/ug.po | 7381 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 3793 insertions(+), 3588 deletions(-) commit d09df426ba3788174b5bcc974831651208a13ea2 Author: Matthias Clasen Date: Sun May 1 10:55:24 2011 -0400 GHash: make sets with refcounted keys work correctly When keys == values, we have to be careful about the order in which we replace their elements. glib/ghash.c | 6 ++-- glib/tests/hash.c | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 3 deletions(-) commit be991170fa99185b7cf1dbf3f9bc62c9d656a08a Author: Matthias Clasen Date: Sat Apr 30 22:28:34 2011 -0400 GHash: introduce a "set" mode Make hash tables start out in a mode in which they don't store values at all, until the first insertion of a non-identical key-value pair. This reduces memory requirements by 1/3 when using hash tables to store sets. Based on a patch by Morten Welinder, https://bugzilla.gnome.org/show_bug.cgi?id=644437 glib/ghash.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++---- glib/tests/hash.c | 42 +++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 6 deletions(-) commit 0ae6bc3aaa57eb15826d81d2db466c166d0b75bf Author: Morten Welinder Date: Wed Apr 27 10:46:00 2011 -0400 GHash: eliminate one of the lookup_nodes functions. Kill g_hash_table_lookup_node and rename g_hash_table_lookup_node_for_insertion to g_hash_table_lookup_node. Since at this point we already check for toombstones in all callers of g_hash_table_lookup_node this doesn't make a difference. https://bugzilla.gnome.org/show_bug.cgi?id=644437 glib/ghash.c | 83 ++++++++------------------------------------------------- 1 files changed, 12 insertions(+), 71 deletions(-) commit 6e45153ef78e1dbc59592104f0675ac8e81c6648 Author: Morten Welinder Date: Wed Apr 27 10:39:56 2011 -0400 GHash: split nodes array into seperate arrays. This reduces memory requirements by 1/6 on 64-bit machines since no padding is needed. It also puts less strain on the memory allocator since we no longer need one giant slab of memory. https://bugzilla.gnome.org/show_bug.cgi?id=644437 glib/ghash.c | 207 ++++++++++++++++++++++++++++----------------------------- 1 files changed, 102 insertions(+), 105 deletions(-) commit 4d8e64e6e83dcbd8c82de45ca5a517213bfd5a1a Author: Morten Welinder Date: Wed Apr 27 09:53:39 2011 -0400 GHash: use macros to check for magic hash values. https://bugzilla.gnome.org/show_bug.cgi?id=644437 glib/ghash.c | 51 +++++++++++++++++++++++++-------------------------- 1 files changed, 25 insertions(+), 26 deletions(-) commit 707e011061fa7dcdaddca686a351ba3bdde5ffe9 Author: Chun-wei Fan Date: Sun May 1 09:42:22 2011 +0800 Update VS2008/2010 README.txt Tell people about the usage of ZLib to avoid the problem such as the one mentioned in Bug 633977 build/win32/vs10/README.txt | 6 +++++- build/win32/vs9/README.txt | 4 ++++ 2 files changed, 9 insertions(+), 1 deletions(-) commit acda716d2d955ba2107a06a11df2e7938d0dfd4d Author: Behdad Esfahbod Date: Fri Apr 29 16:14:49 2011 -0400 Bug 648966 - Update g_unichar_iswide and g_unichar_iswide_cjk Update to Unicode 6.0. Also attach Python script that generates the tables. glib/Makefile.am | 1 + glib/gen-iswide-table.py | 58 +++++++++++++++++++++++++++++++++ glib/guniprop.c | 81 +++++++++++++++++++++++++++------------------- 3 files changed, 107 insertions(+), 33 deletions(-) commit 426e1b61595f0c822b4a4f62f0d9152a6558232d Author: Ryan Lortie Date: Fri Apr 29 17:06:26 2011 -0400 Remove duplicate GDBusInterface declaration It was in gdbusinterface.h but also in giotypes.h. Remove it from the former. gio/gdbusinterface.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 92aed13eb8926cb35d1f2e8978c152f2e4398830 Author: David Zeuthen Date: Fri Apr 29 13:11:22 2011 -0400 Update docs to take comments/suggestions from Matthias into account Signed-off-by: David Zeuthen docs/reference/gio/gdbus-codegen.xml | 74 +++++++++++++++++++++++--------- docs/reference/gio/migrating-gdbus.xml | 5 ++ gio/gdbusobjectmanagerserver.c | 6 ++- 3 files changed, 62 insertions(+), 23 deletions(-) commit 0e352fdb182e63ff163b0feda198cb3b6b20aa3a Merge: 0377fe7 9eba49a Author: David Zeuthen Date: Fri Apr 29 12:01:35 2011 -0400 Merge branch 'master' into gdbus-codegen commit 9eba49a982e94196f90c79c5eac4a00cc437b12e Author: Alexander Larsson Date: Fri Apr 29 16:14:17 2011 +0200 GFilterInputStream: close-base-stream should not be construct-only This is a runtime changable property (by the methods for it), must be a cut and paste error. gio/gfilterinputstream.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a04efe6afb63d54e12ff8f329cbaf458a2e31b26 Author: Colin Walters Date: Tue Apr 26 13:04:25 2011 -0400 Use SIGTRAP (via G_BREAKPOINT()) if G_DEBUG=fatal-warnings On Linux with gdb, it's much more convenient to debug programs using G_DEBUG=fatal-warnings if we send SIGTRAP instead of abort() by default. The default handler for both is to terminate the process. In particular this makes it more easily possible to debug a warning that's not the first in a program; you can skip past it and go to the warning you care about. The "aborting..." message is removed since it's no longer accurate, and anyways was never very useful; crashes should show up in ABRT/apport type crash catching systems. https://bugzilla.gnome.org/show_bug.cgi?id=648423 glib/gmessages.c | 15 +-------------- 1 files changed, 1 insertions(+), 14 deletions(-) commit 1763c2a575a959efa96795fc8d9d2cff60dd70cc Author: Daniel Mustieles Date: Thu Apr 28 20:45:34 2011 +0200 Updated Spanish translation po/es.po | 458 +++++++++++++++++++++++++++++++++----------------------------- 1 files changed, 241 insertions(+), 217 deletions(-) commit e585059514714b7bc191fa3467cb15e86dcc7e09 Author: Shaun McCance Date: Thu Apr 28 12:41:41 2011 -0400 glib/gvariant.c: Fix variable name in example code glib/gvariant.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a1fbe7ae8402c18fc5ebae1d07a90342f79621f3 Author: Colin Walters Date: Wed Apr 27 19:09:38 2011 -0400 Drop stray reference to gthread.la We now build this test multithreaded in gthread/tests. glib/tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7b04bbc8e05f8d22309990599820eeb2438b3cbd Author: Colin Walters Date: Wed Apr 27 18:42:29 2011 -0400 glib/Makefile.am: Remove stray tab glib/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 549d895fa4e9c4b5a35c5d9da4db39ca11dc71cc Author: Colin Walters Date: Thu Mar 17 10:11:41 2011 -0400 glib-unix: New API to watch some Unix signals This new API allows watching a few select Unix signals; looking through the list on my system, I didn't see anything else that I think it'd reasonable to watch. We build on the previous patch to make the child watch helper thread that existed on Unix handle these signals in the threaded case. In the non-threaded case, they're just global variables. https://bugzilla.gnome.org/show_bug.cgi?id=644941 docs/reference/glib/glib-docs.sgml | 1 + docs/reference/glib/glib-sections.txt | 4 +- glib/glib-unix.c | 88 ++++++++- glib/glib-unix.h | 22 ++- glib/glib.symbols | 2 + glib/gmain-internal.h | 35 +++ glib/gmain.c | 371 +++++++++++++++++++++++++++------ glib/tests/Makefile.am | 6 +- glib/tests/unix.c | 81 +++++++ gthread/tests/Makefile.am | 5 + 10 files changed, 544 insertions(+), 71 deletions(-) commit 920899d78fbed7f014dc1549f1b54a3bd708eb4b Author: Colin Walters Date: Wed Mar 16 19:02:15 2011 -0400 gmain: Prepare child watch handling for more generic signal handling In preparation for supporting more Unix signals such as SIGHUP, SIGTERM etc., https://bugzilla.gnome.org/show_bug.cgi?id=644941 glib/glib-unix.c | 19 ++++---- glib/gmain.c | 134 ++++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 114 insertions(+), 39 deletions(-) commit 0ff211f520c18550454289e7265061d7e8ac41c0 Author: Colin Walters Date: Wed Mar 16 13:54:28 2011 -0400 glib-unix: New Unix-specific API GLib historically has been designed to be "mostly" portable; there are some functions only available on Unix like g_io_channel_unix_new(), but these are typically paired with obvious counterparts for Win32. However, as GLib is used not only by portable software, but components targeting Unix (or even just Linux), there are a few cases where it would be very convenient if GLib shipped built-in functionality. This initial patch is a basic wrapper around pipe2(), including fallbacks for older kernels. This pairs well with the existing g_spawn_*() API and its child_setup functionality. However, in the future, I want to add a signal() wrapper here, complete with proxying the signal to a mainloop. I have initial code for this, but doing it sanely (including factoring out gmain.c's private worker thread), is a complex task, and I don't want to block on that. See also gwin32.h for Win32 specific functionality. https://bugzilla.gnome.org/show_bug.cgi?id=644941 docs/reference/glib/glib-sections.txt | 8 ++ glib/Makefile.am | 7 ++ glib/glib-unix.c | 135 +++++++++++++++++++++++++++++++++ glib/glib-unix.h | 70 +++++++++++++++++ glib/glib.symbols | 9 ++ glib/gmain.c | 30 +++----- glib/tests/Makefile.am | 3 + glib/tests/unix.c | 60 +++++++++++++++ 8 files changed, 302 insertions(+), 20 deletions(-) commit 27246c615df66ee869c2174aa6609601ff9d1f64 Author: Colin Walters Date: Wed Apr 27 13:29:07 2011 -0400 Update gio.symbols for previous two commits gio/gio.symbols | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 4098ddcb066f40bf9563973753bbb7867a553700 Author: Colin Walters Date: Wed Apr 27 11:34:23 2011 -0400 GDesktopAppInfo: Add g_desktop_app_info_get_generic_name Necessary for rebasing gnome-menus on top of GDesktopAppInfo. https://bugzilla.gnome.org/show_bug.cgi?id=647967 gio/gdesktopappinfo.c | 22 +++++++++++++++++++++- gio/gdesktopappinfo.h | 1 + 2 files changed, 22 insertions(+), 1 deletions(-) commit 276e6a7be8a2d31bd67cac7c571f65dfd8b2fd88 Author: Colin Walters Date: Fri Apr 15 15:52:33 2011 -0400 GDesktopAppInfo: Add g_desktop_app_info_get_categories() This is needed to rebase gnome-menus on top of GDesktopAppInfo. https://bugzilla.gnome.org/show_bug.cgi?id=647903 gio/gdesktopappinfo.c | 16 ++++++++++++++++ gio/gdesktopappinfo.h | 2 ++ 2 files changed, 18 insertions(+), 0 deletions(-) commit 0dc5d456926257bd68702a4a1c989d132324d460 Author: David Schleef Date: Mon Feb 21 18:58:09 2011 -0800 Fix %z in g_date_time_format() https://bugzilla.gnome.org/show_bug.cgi?id=642935 glib/gdatetime.c | 5 ++--- glib/tests/gdatetime.c | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) commit d3b80c49ea257d02838099e05e315a2407e664b9 Author: Matthias Clasen Date: Wed Apr 27 00:03:59 2011 -0400 GHashTable: Small optimization of remove-all Don't enter the loop if we are not going to notify anyway. Pointed out in bug 646013. glib/ghash.c | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) commit fc7403b675d29574568a79401c864298e8730413 Author: Matthias Clasen Date: Wed Apr 27 00:03:28 2011 -0400 GHashTable: Add a test for remove-all functionality glib/tests/hash.c | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) commit 4832289bc0c2a40a9dbc7259db9be914195ea5f4 Author: Matthias Clasen Date: Tue Apr 26 23:57:17 2011 -0400 Whitespace cleanup glib/tests/hash.c | 426 +++++++++++++++++++++++++++-------------------------- 1 files changed, 217 insertions(+), 209 deletions(-) commit 70a19815326d7e76657848aeaa58ee61db34df58 Author: Maciej Piechotka Date: Thu Mar 31 09:00:27 2011 +0200 Allow caching have_qsort_r which re-enables cross-compiling https://bugzilla.gnome.org/show_bug.cgi?id=646309 configure.ac | 6 +++--- docs/reference/glib/cross.sgml | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) commit fdf83b5108f03aed1b1fa0f5e6b23a5a83c149cd Author: Matthias Clasen Date: Tue Apr 26 23:26:58 2011 -0400 Fix mailing list link in README Patch by Thomas Andersen, bug 647594 README.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6dcf505346adcfaac639f0be074b5aec7f67f3f8 Author: Murray Cumming Date: Mon Apr 4 10:01:51 2011 +0200 GDBusServer: Documentation: Improvements. Provide a fuller description and lead people away if they arrived here just looking for a way to provide a regular D-Bus service. https://bugzilla.gnome.org/show_bug.cgi?id=646425 gio/gdbusserver.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit 71c7e49058c226cd3b34e85c1b25428c1eb80b84 Author: Christian Persch Date: Fri Mar 4 18:21:51 2011 +0100 Use G_SIGNAL_MUST_COLLECT for VARIANT signals Bug #643624. gio/gactiongroup.c | 4 +++- gio/gdbusproxy.c | 10 ++++------ gio/gsimpleaction.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) commit 122a53a9bc546e4705d20b15c703b8ba354e967b Author: Matthias Clasen Date: Tue Apr 26 22:51:54 2011 -0400 Fix up some harmless FALSE <> NULL confusions Reported in bug 643134. gio/gdbusconnection.c | 2 +- gio/gdbusmessage.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) commit 440bd2a97574e63c39f0c1e2dbf8a17c2635b0e9 Author: Matthias Clasen Date: Tue Apr 26 22:08:24 2011 -0400 GSequence: Make g_sequence_iter_move behave as documented As pointed out in bug 658313, moving before the begin iter is supposed to return the begin iter, not the end iter. Also add a test for this behaviour. glib/gsequence.c | 8 +++++++- glib/tests/sequence.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletions(-) commit 2a3f7f49b46abdaf2d82e704a3ee044ed57fb61f Author: Colin Walters Date: Tue Apr 26 15:08:54 2011 -0400 GDesktopAppInfo: Add "filename" property for bindings GDesktopAppInfo violates the GObject rule that your C constructors should just be thin wrappers around g_object_new(). While GKeyFile isn't introspctable, this patch allows from JavaScript: var app = new Gio.DesktopAppInfo({ filename: '/path/to/foo.desktop' }); https://bugzilla.gnome.org/show_bug.cgi?id=648425 gio/gdesktopappinfo.c | 150 ++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 116 insertions(+), 34 deletions(-) commit 1056f2240c46081d8f55fe6f121ddee6a0370d96 Author: Colin Walters Date: Tue Apr 26 13:28:17 2011 -0400 Squash some uninitialized variable compiler warnings From GCC 4.6. gio/glocalfileinfo.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit df45856bba14b93fedcb876fe04e0bbf0d159909 Author: Dan Winship Date: Wed Apr 20 11:41:47 2011 -0400 GSimpleAsyncResult: push thread context around callback When an old pre-thread-default-context API that takes an explicit GMainContext wants to call a gio API, it must call g_main_context_push_thread_default() before, and g_main_context_pop_thread_default() after the gio call, so that the gio method will return its result to the desired GMainContext. But this fails for methods like g_socket_client_connect_async() that make a chain of multiple async calls, since the pushed/popped context will only affect the initial call. Fix this by having GSimpleAsyncResult itself push/pop the context around the callback invocation, so that if the callback queues another async request, it will stay in the same context as the original one. https://bugzilla.gnome.org/show_bug.cgi?id=646957 gio/gsimpleasyncresult.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) commit b27f2e051ecf877d7e209b273c0281a7f7f216cb Author: Muhammet Kara Date: Tue Apr 26 03:04:20 2011 +0300 Updated Turkish translation po/tr.po | 2809 ++++++++++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 1916 insertions(+), 893 deletions(-) commit 0377fe7005d95afcbefd067d566fe558030485ab Author: David Zeuthen Date: Mon Apr 25 10:42:50 2011 -0400 gdbus-codegen: Fix typo in generated docs Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit bbe945183be11dafc037fdf5f92cea49202b6401 Author: David Zeuthen Date: Mon Apr 25 09:29:18 2011 -0400 gdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes Signed-off-by: David Zeuthen docs/reference/gio/gdbus-codegen.xml | 6 +- docs/reference/gio/gio-sections.txt | 42 ++ docs/reference/gio/gio.types | 3 + docs/reference/gio/migrating-gdbus.xml | 5 +- gio/gdbus-codegen/codegen.py | 582 +++++++++++++++++++++--- gio/gdbus-codegen/dbustypes.py | 2 + gio/gdbusobject.c | 57 --- gio/gdbusobject.h | 17 - gio/gdbusobjectmanagerclient.c | 18 +- gio/gdbusobjectproxy.c | 75 +-- gio/gdbusobjectproxy.h | 6 +- gio/gdbusobjectskeleton.c | 31 -- gio/gdbusprivate.h | 2 - gio/gio.symbols | 3 +- gio/giotypes.h | 8 +- gio/tests/gdbus-example-objectmanager-client.c | 6 +- gio/tests/gdbus-example-objectmanager-server.c | 10 +- gio/tests/gdbus-test-codegen.c | 165 ++----- gio/tests/test-codegen.xml | 6 + 19 files changed, 685 insertions(+), 359 deletions(-) commit a330c2f19f5086986940e57bdf1e7db651db725c Author: Michael Terry Date: Mon Apr 25 08:29:35 2011 -0400 Don't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos https://bugzilla.gnome.org/show_bug.cgi?id=648416 gio/gdesktopappinfo.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit d8de88e541180edef5a80b8107a383c3bd8522b5 Author: Chun-wei Fan Date: Mon Apr 25 13:47:07 2011 +0800 Add VS 2008 compilation support for some utilities -Added projects to compile the glib-compile-schemas and gsettings utilities -Update .vsprops to install these in "install" phase -Distribute these projects also build/win32/vs9/Makefile.am | 2 + build/win32/vs9/glib-compile-schemas.vcproj | 152 +++++++++++++++++++++++++++ build/win32/vs9/glib.sln | 48 +++++++++ build/win32/vs9/glib.vsprops | 5 + build/win32/vs9/gsettings.vcproj | 152 +++++++++++++++++++++++++++ 5 files changed, 359 insertions(+), 0 deletions(-) commit dc7e9a54e5957178ecd5ec250d3fe44064fab58b Author: Chun-wei Fan Date: Mon Apr 25 13:32:18 2011 +0800 Add VS 2010 compilation support for some utilities -Added projects to compile the glib-compile-schemas and gsettings utilities -Update .vsprops to install these in "install" phase -Distribute these projects also build/win32/vs10/Makefile.am | 4 + build/win32/vs10/glib-compile-schemas.vcxproj | 174 ++++++++++++++++++++ .../vs10/glib-compile-schemas.vcxproj.filters | 17 ++ build/win32/vs10/glib.props | 8 + build/win32/vs10/glib.sln | 36 ++++ build/win32/vs10/gsettings.vcxproj | 174 ++++++++++++++++++++ build/win32/vs10/gsettings.vcxproj.filters | 14 ++ 7 files changed, 427 insertions(+), 0 deletions(-) commit 58eb4da5c52f0847846368b5df4583080459a798 Author: David Zeuthen Date: Sat Apr 23 19:26:56 2011 -0400 Fix build broken by previous commit Signed-off-by: David Zeuthen gio/tests/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit b5b34fa2f2711bea9b98a7b14882d8bda06c580b Author: David Zeuthen Date: Sat Apr 23 17:43:03 2011 -0400 gdbus-codegen: Include docs for generated code in the GIO docs Signed-off-by: David Zeuthen docs/reference/gio/Makefile.am | 1 + docs/reference/gio/gio-sections.txt | 117 +++++++++++++++++++++++++++++ docs/reference/gio/gio.types | 7 ++ docs/reference/gio/migrating-gdbus.xml | 16 +++- gio/Makefile.am | 28 +++++++ gio/gdbus-example-objectmanager.xml | 65 ++++++++++++++++ gio/tests/Makefile.am | 21 +----- gio/tests/gdbus-example-objectmanager.xml | 65 ---------------- 8 files changed, 232 insertions(+), 88 deletions(-) commit f42d97b88b092e9cb3d0c769cb9f41fe2ce43b16 Author: Thomas Hindoe Paaboel Andersen Date: Wed Apr 20 19:08:06 2011 +0200 docs: fix typos in networking classes gio/gsocketclient.c | 22 +++++++++++----------- gio/gsocketconnection.c | 6 +++--- gio/gsocketlistener.c | 12 ++++++------ gio/gsocketservice.c | 4 ++-- gio/gtcpconnection.c | 2 +- gio/gthreadedsocketservice.c | 4 ++-- gio/gunixconnection.c | 6 +++--- 7 files changed, 28 insertions(+), 28 deletions(-) commit f0eeadf30672ba60e3aae8964c1c0d3ef9fef733 Author: David Zeuthen Date: Wed Apr 20 11:54:24 2011 -0400 GDBusObjectManagerServer: make export() return whether the object was removed This is useful in conjunction with g_warn_if_fail(). Signed-off-by: David Zeuthen gio/gdbusobjectmanagerserver.c | 18 +++++++++++++----- gio/gdbusobjectmanagerserver.h | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) commit c2f670ef492eac0ed8574fc4df1e561ff0b1c89a Author: Dan Winship Date: Wed Apr 20 11:24:46 2011 -0400 GSocketService: clarify transfer semantics of incoming connections The @connection parameter to the ::incoming signal is (transfer none), so you need to ref it if you want to keep it. https://bugzilla.gnome.org/show_bug.cgi?id=647746 gio/gsocketservice.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 35b6c762444a2e7dd5c2658fbc0bd79444929ecf Author: David Zeuthen Date: Wed Apr 20 09:00:16 2011 -0400 gdbus-codegen: Document the generated FOO_PEEK_BAR() and FOO_GET_BAR() macros Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) commit bd5da131a2f38a281729729fc4849f309be31b2a Author: David Zeuthen Date: Tue Apr 19 14:39:47 2011 -0400 gdbus-codegen: Generate gtk-doc section docs This is nice to have if using gtk-doc on the generated code. We could also generate -sections.txt and .types files but we don't do that right now... Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 35 ++++++++++++++++++++++++++++++----- 1 files changed, 30 insertions(+), 5 deletions(-) commit 7a1d42088939f863fbdf4620c186a8bce8b04a33 Author: David Zeuthen Date: Tue Apr 19 13:42:28 2011 -0400 gdbus-codegen: Set nick+blurb for properties to shut up gtk-doc Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) commit 271af675eb81589adcc6a8eabcde454c4c9d12de Author: David Zeuthen Date: Tue Apr 19 13:39:12 2011 -0400 gdbus-codegen: It's GDBusProxyTypeFunc, not GDBusProxyFunc Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 1ea370a1b1f27ed7c9c73224251c07175aa14487 Author: David Zeuthen Date: Tue Apr 19 13:16:10 2011 -0400 gdbus-codegen: Document the generated ObjectManagerClient structs Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit 3238a6ffe77284ed881c552016f93a531c54bd75 Author: David Zeuthen Date: Tue Apr 19 13:10:25 2011 -0400 gdbus-codegen: Add "Returns:" blurb for generated get_proxy_type() This was forgotten. Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 68ba1bf074f9168a1997d674bf1d78b5e707dbf6 Author: David Zeuthen Date: Mon Apr 18 14:23:19 2011 -0400 gdbus-codegen: Generate docs when generating C code This is handy for both gtk-doc and gobject-introspection. Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 659 +++++++++++++++++++++++++--------- gio/gdbus-codegen/codegen_docbook.py | 2 +- gio/gdbus-codegen/codegen_main.py | 11 +- gio/gdbus-codegen/utils.py | 15 + 4 files changed, 504 insertions(+), 183 deletions(-) commit d5dc79c0b066895ad41e84db35568d5a30235186 Author: Benjamin Otte Date: Fri Apr 15 03:23:12 2011 +0200 API: testutils: Add g_test_fail() This allows tests to fail in a nonfatal way and the test runner can continue if invoked with -k. https://bugzilla.gnome.org/show_bug.cgi?id=647826 docs/reference/glib/glib-sections.txt | 1 + glib/glib.symbols | 1 + glib/gtestutils.c | 34 +++++++++++++++++++++++++++++++- glib/gtestutils.h | 2 + 4 files changed, 36 insertions(+), 2 deletions(-) commit 9a121032599ec90c883937017f49af2ba1fc6071 Author: Benjamin Otte Date: Mon Apr 18 14:45:53 2011 +0200 testutils: Sprinkle code with newlines Readable code ftw! glib/gtestutils.c | 31 ++++++++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-) commit d259d50afd7b1f0f063e9ad95f5784540bd0378c Author: Benjamin Otte Date: Mon Apr 18 14:41:51 2011 +0200 testutils: Return number of bad tests from g_test_run_suite_internal() In particular do not return a boolean disguised as an int. glib/gtestutils.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 62e68ceec8cfad06fffb00fd23ccaad3fc0f476e Author: Benjamin Otte Date: Mon Apr 18 14:37:24 2011 +0200 testutils: Remove unused variable glib/gtestutils.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 19fdb18ef8794bde6b29e400a6d868a7974b73e2 Author: Benjamin Otte Date: Mon Apr 18 14:35:58 2011 +0200 testutils: Return a boolean from g_test_case_run() Return value is intened to be TRUE for success, FALSE for failure. Currently we return TRUE all the time. Previously the test returned 0 all the time. glib/gtestutils.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit affc6f747587f5b86d5ec34cf22e7f666d7d09a9 Author: David Zeuthen Date: Sat Apr 16 15:24:42 2011 -0400 GDBusObjectManagerClient: Add a GDestroyNotify to the user_data For bindings, obviously. Signed-off-by: David Zeuthen gio/gdbusobjectmanagerclient.c | 40 +++++++++++++++++++++++++++++++++++++++- gio/gdbusobjectmanagerclient.h | 4 ++++ gio/tests/gdbus-test-codegen.c | 18 ++++++++++-------- 3 files changed, 53 insertions(+), 9 deletions(-) commit ea742e88e30fc398b8f86cc017161e6dcbb61e08 Author: David Zeuthen Date: Sat Apr 16 14:42:21 2011 -0400 GDBus: Add some gobject-introspection annotations for new code Signed-off-by: David Zeuthen gio/gdbusinterfaceskeleton.c | 2 +- gio/gdbusobject.c | 14 +++++++------- gio/gdbusobjectmanager.c | 6 ++++-- gio/gdbusobjectmanagerclient.c | 24 ++++++++++++++---------- gio/gdbusobjectmanagerserver.c | 4 ++-- gio/gdbusobjectproxy.c | 3 ++- 6 files changed, 30 insertions(+), 23 deletions(-) commit 3cef28a2f0d45c4255263dae6a1dc3987bbc3f0c Author: David Zeuthen Date: Sat Apr 16 14:07:23 2011 -0400 gdbus-codegen: Make generated code introspectable Specific changes - Use get_type(), not get_gtype() for the GType function - so we need to use the lower-case name type_ for properties called type - Don't return a function pointer, just make the function returned available instead - Add (type) annotations in constructors so g-ir-scanner detects them as such - Add (transfer none) annotations to property getters - Add (out) annotations to D-Bus method call functions Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 227 +++++++++++++++++++++++++++++++++++----- gio/gdbus-codegen/dbustypes.py | 2 + gio/tests/gdbus-test-codegen.c | 2 +- 3 files changed, 202 insertions(+), 29 deletions(-) commit 2e358e12f95601e7d00c7a4b0c272c0cd00c2e7d Author: David Zeuthen Date: Fri Apr 15 16:36:54 2011 -0400 gdbus-codegen: Nuke debug spew Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen_main.py | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit a3fa748e54ec077a764a3045c92df59d00ba0edb Author: David Zeuthen Date: Fri Apr 15 16:11:43 2011 -0400 gdbus-codegen: Never emit empty PropertiesChanged signals It's not that it's actually a bug to do so per se, strictly speaking, it's just pointless and wasteful. Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) commit 6bccc46d152079d69cf8aebef08433b1ec6055c7 Author: David Zeuthen Date: Fri Apr 15 15:53:28 2011 -0400 gdbus-codegen: Don't send out PropertiesChanged if value ends up not changing A fairly typical pattern is to have code that does foo_set_bar (object, ""); if (some_condition) { foo_set_bar (object, "yes"); } where some_condition is often true every time @object is updated. With this code, bar is essentially always "yes" but because of how gdbus-codegen works, useless PropertiesChanged events got scheduled and sent out. With this patch, we avoid that by always keeping the original value around and comparing it only when we deem it's time to send out the ::PropertiesChanged signal (typically in an idle but can be forced by the user via flush()). Also add a test case for this. Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 49 ++++++++++++++++++++++----------- gio/tests/gdbus-test-codegen.c | 59 +++++++++++++++++++++++++++++++++++++++- gio/tests/test-codegen.xml | 2 + 3 files changed, 93 insertions(+), 17 deletions(-) commit 01602e16955fb7ca60799d4e142c7392ad91237d Author: Colin Walters Date: Fri Apr 15 15:51:25 2011 -0400 Fix some compiler warnings from gcc 4.6 gio/gdbusauthmechanismsha1.c | 1 + gio/tests/gdbus-serialization.c | 1 - gio/tests/proxy.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) commit 78203f369977b797116c9fc3b2c72a56c55db656 Author: Colin Walters Date: Thu Apr 14 16:03:18 2011 -0400 gapplication: Fix typo in property gio/gapplication.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cade3cb1dab58ee0ab291efbab03e5b047b2a5be Author: David Zeuthen Date: Fri Apr 15 13:51:10 2011 -0400 gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit e19734d6c3f24076d25ac7f290b97df76cad5056 Author: David Zeuthen Date: Fri Apr 15 12:56:07 2011 -0400 gdbus-codegen: Add support for the org.freedesktop.DBus.Deprecated annotation Signed-off-by: David Zeuthen docs/reference/gio/gdbus-codegen.xml | 124 +++++++++++++++++++++------------- gio/gdbus-codegen/codegen.py | 28 ++++++++ gio/gdbus-codegen/codegen_docbook.py | 8 ++ gio/gdbus-codegen/dbustypes.py | 16 +++++ gio/tests/test-codegen.xml | 22 ++++++ 5 files changed, 151 insertions(+), 47 deletions(-) commit 0f9b83dd36a252552e4644257c0fa8272f6ba847 Author: Ryan Lortie Date: Fri Apr 15 09:30:24 2011 -0400 GApplication: #include "gsettings.h" Since we call g_settings_sync() from there now... gio/gapplication.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 631d0c3534661e549f7df18fbb9832bdf19c5eaf Merge: 2553511 a5dd6fc Author: Ryan Lortie Date: Fri Apr 15 09:29:47 2011 -0400 Merge remote-tracking branch 'gvdb/master' commit a5dd6fcc4f46a322cc547a5fcfa1b52cbc5ec6d6 Author: Ryan Lortie Date: Fri Apr 15 09:27:38 2011 -0400 builder: do not include on win32 Spotted by Kean Johnston . https://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00010.html gvdb-builder.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 98e6d4b0a934b9fd67a38121958fccec879bf1ac Author: David Zeuthen Date: Fri Apr 15 08:48:21 2011 -0400 gdbus-codegen: Include a blurb about the license of the generated code More precisely, include this line The license of this code is the same as for the source it was derived from. Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 5f31671da05c000224a227ce3548074dc2942086 Author: David Zeuthen Date: Fri Apr 15 08:44:05 2011 -0400 gdbus-codegen: Use the right program name in introductory comment (again) Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c76a1f99054134fafec1d47d523c4aca219ab83c Author: David Zeuthen Date: Fri Apr 15 08:40:52 2011 -0400 gdbus-codegen: Use the right program name in introductory comment Signed-off-by: David Zeuthen gio/gdbus-codegen/codegen.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9e9535b45c1a09a4c86e03d1c0250d7d8703dc08 Author: David Zeuthen Date: Fri Apr 15 08:33:30 2011 -0400 gdbus-codegen: Add copyright / license headers Signed-off-by: David Zeuthen gio/gdbus-codegen/__init__.py | 1 - gio/gdbus-codegen/codegen.py | 21 +++++++++++++++++++++ gio/gdbus-codegen/codegen_docbook.py | 21 +++++++++++++++++++++ gio/gdbus-codegen/codegen_main.py | 21 +++++++++++++++++++++ gio/gdbus-codegen/config.py.in | 21 +++++++++++++++++++++ gio/gdbus-codegen/dbustypes.py | 21 +++++++++++++++++++++ gio/gdbus-codegen/gdbus-codegen.in | 22 ++++++++++++++++++++++ gio/gdbus-codegen/parser.py | 21 +++++++++++++++++++++ gio/gdbus-codegen/utils.py | 21 +++++++++++++++++++++ 9 files changed, 169 insertions(+), 1 deletions(-) commit febfc45fbeaf9f1df3de2310e32c6bce3ea9bbf3 Author: David Zeuthen Date: Fri Apr 15 08:24:40 2011 -0400 GDBus: Support Ugly_Case and use org.gtk.GDBus.C.Name since it's C-only Signed-off-by: David Zeuthen docs/reference/gio/gdbus-codegen.xml | 60 ++++++++++++++++------- gio/gdbus-codegen/dbustypes.py | 86 +++++++++++++++++++++------------- gio/gdbus-codegen/utils.py | 5 ++ gio/tests/gdbus-test-codegen.c | 6 ++ gio/tests/test-codegen.xml | 24 ++++++++-- 5 files changed, 125 insertions(+), 56 deletions(-) commit 2553511f4eaf4af8e48f21f4a3a0ac7c58defc8a Author: Michael Kuhn Date: Wed Dec 22 10:11:11 2010 +0100 Bug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD https://bugzilla.gnome.org/show_bug.cgi?id=637561 Signed-off-by: David Zeuthen gio/gdbusserver.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit c2387ddff164becd90654b459d8c6031c3656577 Author: Simon McVittie Date: Thu Mar 31 13:58:55 2011 +0100 /gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8 Older versions of libdbus would let you construct an invalid DBusMessage, but that's a bug, which will be fixed in 1.4.8/1.5.0. Instead, construct a valid message of the same length, then replace substrings in the serialized blob with their invalid counterparts. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=646326 Signed-off-by: David Zeuthen gio/tests/gdbus-serialization.c | 43 ++++++++++++++++++++++++++++++-------- 1 files changed, 34 insertions(+), 9 deletions(-) commit 8b50e2f5475f9817baa358e2f638d0853e50ffb1 Author: Kean Johnston Date: Fri Apr 15 10:15:04 2011 +0200 GLocalFile: Use _fstati64 rather than stat on Win32 We want this to get 64bit timestamps and file lenghts. gio/glocalfile.c | 12 +++++++++--- gio/glocalfileoutputstream.c | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) commit a3722d0408fd3746a30180e0c37f1713673a1fcc Author: Matthias Clasen Date: Thu Apr 14 20:41:54 2011 -0400 Slight docs rewording Proposed by Thomas Andersen, https://bugzilla.gnome.org/show_bug.cgi?id=647700 gio/gsettings.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 4da18247592f1159ee03e414990d2a744aa0a8c7 Author: David Zeuthen Date: Thu Apr 14 11:27:57 2011 -0400 GResolver: Don't return duplicate addresses ... this was causing a GDBus test-case to fail so now that it is fixed, also reenable the test case. https://bugzilla.gnome.org/show_bug.cgi?id=631379 Signed-off-by: David Zeuthen gio/gresolver.c | 49 ++++++++++++++++++++++++++++++++++++++++++++--- gio/tests/gdbus-peer.c | 6 ----- 2 files changed, 45 insertions(+), 10 deletions(-) commit 33515d4eb4175fac70ab42151020336c34bc2083 Author: David Zeuthen Date: Thu Apr 14 11:27:57 2011 -0400 GInetAddress: add equal() method This is needed in the fix for https://bugzilla.gnome.org/show_bug.cgi?id=631379 Signed-off-by: David Zeuthen docs/reference/gio/gio-sections.txt | 1 + gio/ginetaddress.c | 29 +++++++++++++++++++++++++++++ gio/ginetaddress.h | 3 +++ gio/gio.symbols | 1 + 4 files changed, 34 insertions(+), 0 deletions(-) commit 8b03077a44092ce2b510ef3246da063cacc8d951 Author: Ryan Lortie Date: Thu Apr 14 09:54:17 2011 -0400 GTimeZone: fix non-threadsafe refcounting In the previous code, if the timezone was pulled out of the cache again just as the last reference was being dropped, the cache code will increase its refcount and return it while the unref code was freeing it. Protect against that. Closes #646435. glib/gtimezone.c | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) commit e38ef14e8b8d2fed909d92514b665bb8c3c99e6c Author: David Zeuthen Date: Wed Apr 13 18:40:47 2011 -0400 GDBus: If an authentication method fail, don't give up, just try the next one This problem was reported in bug 647602. https://bugzilla.gnome.org/show_bug.cgi?id=647602 Signed-off-by: David Zeuthen gio/gdbusauth.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) commit 3b997d92c13217db78fcc774bff6d6c0fcd919e6 Author: David Zeuthen Date: Wed Apr 13 18:21:16 2011 -0400 GDBus: Add test case for the ANONYMOUS authentication method Signed-off-by: David Zeuthen gio/tests/gdbus-peer.c | 92 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 92 insertions(+), 0 deletions(-) commit befb60d8268ad2296fe94cebbeadf749314c7a70 Author: David Zeuthen Date: Wed Apr 13 18:19:57 2011 -0400 GDBus: Nuke debug spew from the ANONYMOUS authentication method Signed-off-by: David Zeuthen gio/gdbusauthmechanismanon.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 25c57d31c5f8bb36f17328bbeacce4796490b241 Author: David Zeuthen Date: Wed Apr 13 17:49:19 2011 -0400 GDBus: Allow tcp: and nonce-tcp: addresses without any arguments This was broken in this commit http://git.gnome.org/browse/glib/commit/?id=0729260141bb585943ad1c6efa8ab7ee9058b0aa The test case for catching this is unfortunately commented out (so it didn't catch it) due to this bug https://bugzilla.gnome.org/show_bug.cgi?id=631379 still being unresolved. Signed-off-by: David Zeuthen gio/gdbusaddress.c | 29 ++++++----------------------- 1 files changed, 6 insertions(+), 23 deletions(-) commit 8826ad046d3dfa1a0fbaca1cab1086d12f31d0a5 Author: David Zeuthen Date: Wed Apr 13 16:39:50 2011 -0400 GDBusInterfaceStub: Clarify ::g-authorize-method docs As suggested by Simon in https://bugzilla.gnome.org/show_bug.cgi?id=647577#c11 Signed-off-by: David Zeuthen gio/gdbusinterfaceskeleton.c | 2 +- gio/gdbusobjectskeleton.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6ccca55752c41001f3af3430d3d93f587fd42383 Author: David Zeuthen Date: Wed Apr 13 16:33:51 2011 -0400 GDBus: Use Skeleton instead of Stub After some brainstorming with Simon, see https://bugzilla.gnome.org/show_bug.cgi?id=647577#c8 Signed-off-by: David Zeuthen docs/reference/gio/gdbus-codegen.xml | 18 +- docs/reference/gio/gio-docs.xml | 4 +- docs/reference/gio/gio-sections.txt | 90 ++-- docs/reference/gio/gio.types | 4 +- gio/Makefile.am | 8 +- gio/gdbus-codegen/codegen.py | 224 ++++---- gio/gdbusinterface.c | 4 +- gio/gdbusinterfaceskeleton.c | 717 ++++++++++++++++++++++++ gio/gdbusinterfaceskeleton.h | 109 ++++ gio/gdbusinterfacestub.c | 717 ------------------------ gio/gdbusinterfacestub.h | 109 ---- gio/gdbusobject.c | 4 +- gio/gdbusobjectmanagerserver.c | 66 ++-- gio/gdbusobjectmanagerserver.h | 4 +- gio/gdbusobjectskeleton.c | 491 ++++++++++++++++ gio/gdbusobjectskeleton.h | 91 +++ gio/gdbusobjectstub.c | 491 ---------------- gio/gdbusobjectstub.h | 91 --- gio/gdbusprivate.h | 2 +- gio/gio.h | 4 +- gio/gio.symbols | 46 +- gio/gioenums.h | 14 +- gio/giotypes.h | 4 +- gio/tests/gdbus-example-objectmanager-server.c | 12 +- gio/tests/gdbus-test-codegen.c | 154 +++--- 25 files changed, 1739 insertions(+), 1739 deletions(-) commit 68b16deb1f4ec739f80291156f2e0e2eed87d225 Author: Colin Walters Date: Wed Apr 13 14:03:58 2011 -0400 gdbusconnection: Avoid tripping assertion if we fail to authenticate twice If g_bus_get_sync() fails in authentication (because e.g. the process uid, doesn't match the expected in EXTERNAL), a secondary call to g_bus_get_sync() would notice we aren't initialized, and try to initialize. The assertion here is just wrong; we now explicitly and clearly handle both cases where we already have an error, or we already succeeded. https://bugzilla.gnome.org/show_bug.cgi?id=635694 gio/gdbusconnection.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) commit 4d15ba90c04e474f996777c9931d50eae712816e Author: Ryan Lortie Date: Wed Apr 13 11:46:33 2011 -0400 G_VARIANT_TYPE_VARDICT: Add 'Since:' tag glib/gvarianttype.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 683943b40e20d7cd4eda688d4410012b62b45a20 Author: David Zeuthen Date: Wed Apr 13 11:35:06 2011 -0400 GDBusInterfaceStub: Use G_VARIANT_TYPE_VARDICT when referring to type a{sv} Signed-off-by: David Zeuthen gio/gdbusinterfacestub.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) commit 76492d7741c7c6f48d2d7301c872020e42b025ff Author: Matthias Clasen Date: Wed Apr 13 08:48:10 2011 -0400 Bump version configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)