commit 36c21d4790044683a042f8d9479ffc5798914b5b Author: Ryan Lortie Date: Mon Nov 21 12:18:32 2011 -0500 release glib 2.31.2 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 59623973fa1853552f0bd59c850aa9c505c42d7d Author: Ryan Lortie Date: Mon Nov 21 12:36:43 2011 -0500 dist gio/tests/key8.pem gio/tests/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 4bb411948c9ca00a534e5ec06efbf8ef22fc07f1 Author: Simon McVittie 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 Reviewed-by: Cosimo Alfarano gio/tests/Makefile.am | 10 + gio/tests/gdbus-connection-flush.c | 384 ++++++++++++++++++++++++++++++++++++ 2 files changed, 394 insertions(+), 0 deletions(-) commit 96deb40caaf82bc9c51675515971dc3d638c72a0 Author: Simon McVittie 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 Reviewed-by: Cosimo Alfarano 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 bae9928246d5104e1d73a60dd66bfbc45740d640 Author: Simon McVittie Date: Mon Nov 21 17:20:52 2011 +0000 _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 Reviewed-by: Cosimo Alfarano gio/gdbusprivate.c | 43 +++++++++++++++++++++++++++++++++++++------ 1 files changed, 37 insertions(+), 6 deletions(-) commit f41178c6c79a00a1fb3a99bc3ae7c88a85c833fc Author: Simon McVittie Date: Mon Nov 21 17:18:01 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 Reviewed-by: Cosimo Alfarano gio/gdbusprivate.c | 101 +++++++++++++++++++++++++++++++++++----------------- 1 files changed, 68 insertions(+), 33 deletions(-) commit 301332168b096e8c64e26932e2a02bd24fafdbab Author: Simon McVittie Date: Mon Nov 21 17:16:16 2011 +0000 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 Reviewed-by: Cosimo Alfarano gio/gdbusprivate.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) commit 56eb16ff50cee51117db2e4979f5632a8df19e40 Author: Simon McVittie 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 Reviewed-by: Cosimo Alfarano gio/gdbusprivate.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 18482ab17ef5abe3b41bf0f6a076546ff1a5b28e Author: Simon McVittie Date: Mon Nov 21 17:14:55 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 Reviewed-by: Cosimo Alfarano gio/gdbusprivate.c | 71 ++++++++++++++++++++++++++++----------------------- 1 files changed, 39 insertions(+), 32 deletions(-) commit a795e563dfec28842846700d30360acaff9699e3 Author: Ryan Lortie Date: Mon Nov 21 12:02:02 2011 -0500 Drop last uses of @returns: gio/gapplication.c | 24 +++++--- gio/gkeyfilesettingsbackend.c | 3 +- gio/gsettings.c | 128 ++++++++++++++++++++++++++--------------- gio/gsettings.h | 11 ++- gio/gsettingsbackend.c | 18 ++++-- 5 files changed, 118 insertions(+), 66 deletions(-) commit 0f1fb417bf0425fc4d5c277ffb86b881fd3f1c48 Author: Ryan Lortie Date: Mon Nov 21 11:39:52 2011 -0500 Missed a couple of @returns glib/gvariant.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 0e0554bd62e897f001aaa9388345c1d4e62614af Author: Ryan Lortie Date: Mon Nov 21 11:33:05 2011 -0500 GVariant: drop use of @returns glib/gvariant-core.c | 42 +++++--- glib/gvariant-parser.c | 6 +- glib/gvariant-serialiser.c | 6 +- glib/gvariant.c | 240 +++++++++++++++++++++++++++++--------------- glib/gvarianttype.c | 84 ++++++++++----- 5 files changed, 249 insertions(+), 129 deletions(-) commit 4527e7cbf75f5f06a3f8b3ee9c5ecb16f6a27406 Author: Matthias Clasen Date: Mon Nov 21 11:09:42 2011 -0500 gbitlock: Drop @returns syntax from doc comments glib/gbitlock.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 22d3972284df905e948143792afc8865b193700e Author: Matthias Clasen Date: Mon Nov 21 11:05:43 2011 -0500 GBuffer: Drop @returns syntax from doc comments glib/gbuffer.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit f62ee0a0ca29c263083f15d3dd144dc1fb01be22 Author: Matthias Clasen Date: Mon Nov 21 11:03:31 2011 -0500 GSocketClient: Drop @returns syntax from doc comments gio/gsocketclient.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit b9f0cb0f0754d5985cef5e01c2761975eacdd87b Author: Matthias Clasen Date: Mon Nov 21 11:02:30 2011 -0500 GSimplePermission: Drop @returns syntax in doc comments gio/gsimplepermission.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 2011ecd6ac9dff37aaab9a0d831b78c369375b4b Author: Matthias Clasen Date: Mon Nov 21 11:01:16 2011 -0500 GPermission: Drop @returns syntax from doc comments gio/gpermission.c | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) commit ef4ae742cecf696acb0449ab08ad4dac2a91aac2 Author: Matthias Clasen Date: Mon Nov 21 01:53:29 2011 -0500 Improve test coverage glib/tests/test-printf.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) commit 89ad8bda233cb69608570471a18bc3c42d28db28 Author: Matthias Clasen Date: Mon Nov 21 01:40:51 2011 -0500 Improve mainloop test coverage slightly glib/tests/mainloop.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) commit b0fa0968705743ff81df7e22b4f5417cd22cf882 Author: Matthias Clasen Date: Mon Nov 21 01:02:50 2011 -0500 Improve test coverage glib/tests/keyfile.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) commit 0fd14b1a56085d59fcb2619dd5071d854997e4d7 Author: Matthias Clasen Date: Mon Nov 21 00:27:25 2011 -0500 Fix a case conversion bug For titlecase chars without uppercase variant, we were returning 0, contrary to the docs. glib/guniprop.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5197870665c0b90f3d3e475f1cd8c64f7cfb7bd2 Author: Matthias Clasen Date: Mon Nov 21 00:27:12 2011 -0500 Improve test coverage glib/tests/unicode.c | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) commit 4cbacb91de6010c0d852979202901e70e24de790 Author: Matthias Clasen Date: Sun Nov 20 23:18:20 2011 -0500 Add a test for g_unichar_isdefined glib/tests/unicode.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit 3aeddaa2d4d9c2eba708e24e2368536e7eeee8da Author: Chun-wei Fan Date: Mon Nov 21 11:53:02 2011 +0800 gio/Makefile.am Filter out yet another *nix only source file from the Visual C++ project file completion rules. gio/Makefile.am | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit fee6293bc9703c6c31d4a6dcb6e5b572b75a283d Author: Chun-wei Fan Date: Mon Nov 21 10:45:27 2011 +0800 Update GLib Visual C++ projects Also link to WinMM.lib since timeGetTime is used (commit 8d023c27). build/win32/vs10/glib.vcxprojin | 16 ++++++++-------- build/win32/vs9/glib.vcprojin | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) commit 928e356cdbf48d6c7967e5d3bc4135c1c1a9ed55 Author: Fran Diéguez Date: Mon Nov 21 01:59:07 2011 +0100 Updated Galician translations po/gl.po | 5966 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 3018 insertions(+), 2948 deletions(-) commit 0878f5ba438b153c1654d3275527442b7e4f5008 Author: Matthias Clasen Date: Sun Nov 20 15:12:05 2011 -0500 GFile: Add some introspection annotations progress_callback in g_file_copy and g_file_copy_async may be NULL. Annotations should reflect that. Pointed out by Carlo Teubner. https://bugzilla.gnome.org/show_bug.cgi?id=664415 gio/gfile.c | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) commit ff2f4a12ee673cbb020d44fca2adb81be3c99f49 Author: Josselin Mouette Date: Sun Nov 20 16:53:36 2011 +0100 Document that g_list_sort is a stable sort. This is a guarantee for the future so that applications can rely on it. https://bugzilla.gnome.org/show_bug.cgi?id=531973 glib/glist.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit b6732da5e749b73f6386d9da87eec2aa867d89b0 Author: Jorge González Date: Sun Nov 20 10:10:13 2011 +0100 Updated Spanish translation po/es.po | 81 +++++++++++++++++++++++++++++++------------------------------ 1 files changed, 41 insertions(+), 40 deletions(-) commit d920cb6bdbefc20d9dfb33b289b388a7e63415c6 Author: Matthias Clasen Date: Thu Nov 17 23:30:32 2011 -0500 GApplication: unregister bus name https://bugzilla.gnome.org/show_bug.cgi?id=647987 gio/gapplicationimpl-dbus.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 6c7387f6d13d8e1db16a754d7b7c25635b2118f5 Author: Matthias Clasen Date: Sat Nov 19 16:23:33 2011 -0500 Trivial doc typo fix gio/gdbusconnection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b55daa7f599e77f3abedb747eb70859d8ecdeae7 Author: Kjartan Maraas Date: Sat Nov 19 12:02:08 2011 +0100 Updated Norwegian bokmål translation po/nb.po | 5818 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 2935 insertions(+), 2883 deletions(-) commit 1dc8d1f93213a08d8f63bcadf31ce0e3d169b936 Author: Dan Winship Date: Fri Nov 18 15:05:34 2011 -0500 GTlsCertificate: support unencrypted PKCS#8 private keys PKCS#8 is the "right" way to encode private keys. Although the APIs do not currently support encrypted keys, we should at least support unencrypted PKCS#8 keys. https://bugzilla.gnome.org/show_bug.cgi?id=664321 gio/gtlscertificate.c | 76 ++++++++++++++++++++++++++++++------------ gio/tests/key8.pem | 16 +++++++++ gio/tests/tls-certificate.c | 36 ++++++++++++++++++++- 3 files changed, 105 insertions(+), 23 deletions(-) commit cb74c366783944057492bae1e6b9472e36e2e7f1 Author: Nicolas Dufresne Date: Thu Nov 17 13:04:04 2011 -0500 [gio] Terminate connect call when application proxy is used The connect_async() calls would never terminated when an application side proxy was being used. Note we also skip over TLS handshake in this case, as the application may have to do some proxy handshake before. gio/gsocketclient.c | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) commit d2fd6dac4a794211eb2c1b034f67d6bcfc348b20 Author: Giovanni Campagna Date: Thu Nov 17 22:30:29 2011 +0100 GMain: allow NULL context to g_source_attach Documentation says it's fine and means default context, but the annotations are missing (and thus bindings would complain). https://bugzilla.gnome.org/show_bug.cgi?id=664302 glib/gmain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 71d3dad3ffc13a102689f00a8ae398c5d96577c4 Author: Giovanni Campagna Date: Thu Nov 17 22:29:18 2011 +0100 GPollable*Stream: expose source methods to introspection GSource has been introspectable for a while, so can stop skipping methods of GPollableInputStream/OutputStream that return it. https://bugzilla.gnome.org/show_bug.cgi?id=664302 gio/gpollableinputstream.c | 4 ++-- gio/gpollableoutputstream.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 951827379f34e491a72473a45eb84618c8715f73 Author: Murray Cumming Date: Fri Nov 18 10:46:35 2011 +0100 gsignal.h: Remove trailing comma gobject/gsignal.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f9cc0786715afa977e4fa55a684ba2e12f98a203 Author: Ryan Lortie Date: Fri Nov 18 09:41:07 2011 +0000 We need in gsettingsschema.c now for LC_TIME (since we moved a bunch of code over from gsettings.c). gio/gsettings.c | 1 - gio/gsettingsschema.c | 1 + 2 files changed, 1 insertions(+), 1 deletions(-) commit 4ae42ceb3c6f671d41a390aa664edd2f5f21fb4a Author: Nicolas Dufresne Date: Thu Nov 17 13:01:05 2011 -0500 Clear proxy address upon retry The proxy address was not cleared between each attempt. That would lead to leak or worse, trying to do the proxy handshake on the final destination address. To make all this safer, I have regroup all the cleanup where the iterations starts. https://bugzilla.gnome.org/show_bug.cgi?id=664141 gio/gsocketclient.c | 36 ++++++------------------------------ 1 files changed, 6 insertions(+), 30 deletions(-) commit 216fd8a82c902486ba5e5bdcf4a0a0d3d61036c4 Author: Sjoerd Simons Date: Mon Nov 14 22:06:07 2011 +0100 Silence compiler warnings Fix several warnings for format strings (-Werror=format-security) and set but unused variables (-Wunused-but-set-variable) https://bugzilla.gnome.org/show_bug.cgi?id=664144 tests/iochannel-test.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) commit fcffe6abbb1363b4645752ef2f06c098767f2194 Author: Jürg Billeter Date: Fri Nov 4 22:48:56 2011 +0100 GKeyFile: Accept empty files It already accepts files consisting solely of whitespace. https://bugzilla.gnome.org/show_bug.cgi?id=663432 glib/gkeyfile.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) commit a0c755710cdf3e06622b34e10088d4209189e6f9 Author: Simon McVittie Date: Tue Oct 18 11:14:20 2011 +0100 Document exactly what g_time_val_to_iso8601() produces Bug: https://bugzilla.gnome.org/show_bug.cgi?id=537637 Signed-off-by: Simon McVittie glib/gtimer.c | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) commit dc89b51c2d71088c014ec94572629aabf143310e Author: Alexandre Rostovtsev Date: Wed Nov 16 15:05:46 2011 +0000 _g_dbus_get_machine_id(): check /etc/machine-id too machine-id can be in /etc or in /var/lib/dbus. [amended with slightly revised error handling -smcv] Bug: https://bugzilla.gnome.org/show_bug.cgi?id=663928 gio/gdbusprivate.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) commit 8d9f600aeab76277abfad0ee924954297a1c06d9 Author: Rico Tzschichholz Date: Thu Nov 17 19:46:54 2011 +0100 Remove redefinition of typedef 'GSettingsSchemaSource' gio/gsettingsschema.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 99718b9e221b032545674662a3ec7d959e38f813 Author: Ryan Lortie Date: Thu Nov 17 17:40:36 2011 +0000 start on the NEWS NEWS | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) commit 7f285291900f0cf7892bd79a5721d95f9bcdce4e Author: Ryan Lortie Date: Thu Nov 17 17:33:19 2011 +0000 g_settings_new_full(): more docs gio/gsettings.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit ee31c7f4ed7317fdae06ee5d37158908dcc83ca5 Author: Ryan Lortie Date: Thu Nov 17 14:02:39 2011 +0000 add plugin example for GSettingsSchemaSource gio/gsettingsschema.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 88 insertions(+), 1 deletions(-) commit a4421529b88a1ff2229102ab6853039007ab6bf8 Author: Ryan Lortie Date: Thu Nov 17 10:06:49 2011 +0000 Add gtk-doc for gsettingsschema{,source} docs/reference/gio/Makefile.am | 2 +- docs/reference/gio/gio-docs.xml | 1 + docs/reference/gio/gio-sections.txt | 30 ++++++ gio/gsettingsschema.c | 188 ++++++++++++++++++++++++++++++++++- 4 files changed, 219 insertions(+), 2 deletions(-) commit 011a71cf7167479d4006685acf6b8ac8cad3be34 Author: Matthias Clasen Date: Wed Nov 16 23:24:46 2011 -0500 'make dist' fixes gio/Makefile.am | 1 + gio/tests/Makefile.am | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) commit 97cf2d78c58c942538ab125bd90bf23841e169b0 Author: Matthias Clasen Date: Wed Nov 16 22:25:16 2011 -0500 settings-source test: Check returned error as well gio/tests/gsettings.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit a7ce1953fa1dc5aef72814678494cb94a9668611 Author: Matthias Clasen Date: Wed Nov 16 22:12:21 2011 -0500 Trivial typo fix gio/gsettingsschema.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f47264ef5c4cfdb1abb903b4d8409352c65f98b9 Author: Jasper St. Pierre Date: Wed Nov 16 14:51:45 2011 -0500 gsettings: add annotations for _new_full() The path and backend arguments to g_settings_new_full are optional. gio/gsettings.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 6339b5fe2de6e49807938983805152bd7c94ef0a Author: Jasper St. Pierre Date: Wed Nov 16 14:53:03 2011 -0500 schema source: avoid introspection confusion Any method that has its prefix'd argument as its first parameter will be interpreted by introspection as a method. We don't want this, so we need to swap the first two parameters. gio/gsettingsschema.c | 4 ++-- gio/gsettingsschema.h | 4 ++-- gio/tests/gsettings.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) commit bef773408cfebd5a80475c32d96a2b14afaabf8e Author: Jasper St. Pierre Date: Wed Nov 16 14:51:27 2011 -0500 gsettingsschema: Use the trusted parameter gio/gsettingsschema.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 148f731748a586ecc2d6e15afcc760a46e929a84 Author: Ryan Lortie Date: Wed Nov 16 10:38:04 2011 +0000 Add test case and fix some bugs Add the first test case for the schema source functionality and fix a couple of bugs that got uncovered by that. gio/gsettings.c | 3 +- gio/gsettingsschema.c | 3 +- gio/tests/gsettings.c | 89 +++++++++++++++++++++++ gio/tests/org.gtk.schemasourcecheck.gschema.xml | 7 ++ 4 files changed, 100 insertions(+), 2 deletions(-) commit fee2c87ba133cf029cb4a285cbb4d057d0d73391 Author: Ryan Lortie Date: Wed Nov 16 10:37:30 2011 +0000 Add g_settings_schema_source_new_from_directory() It is now possible for plugin loading systems to do the right thing. gio/gio.symbols | 1 + gio/gsettingsschema.c | 25 +++++++++++++++++++++++++ gio/gsettingsschema.h | 23 ++++++++++++++--------- 3 files changed, 40 insertions(+), 9 deletions(-) commit 446eda8c2b8656bf18b233a04c415f20821ae138 Author: Ryan Lortie Date: Tue Nov 15 12:42:02 2011 +0000 Clarify docs/params for 'schema' vs 'schema id' Clean up our parameter naming and documentation to draw a clearer line between a schema and its identifier. gio/gsettings.c | 45 ++++++++++++++++++++++++--------------------- gio/gsettings.h | 8 ++++---- 2 files changed, 28 insertions(+), 25 deletions(-) commit 1e700720657aa75b0ac4d2457b2ee2f216477c87 Author: Ryan Lortie Date: Tue Nov 15 12:38:01 2011 +0000 Add g_settings_new_full() taking GSettingsSchema gio/gio.symbols | 1 + gio/gsettings.c | 37 +++++++++++++++++++++++++++++++++++++ gio/gsettings.h | 4 ++++ 3 files changed, 42 insertions(+), 0 deletions(-) commit 1c8ae819edf2f2be4e4ad89dee534309ff62ef75 Author: Ryan Lortie Date: Tue Nov 15 12:16:50 2011 +0000 GSettings: add 'settings-schema' property Ideally we'd have called this 'schema', but it is already used. gio/gsettings.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 52 insertions(+), 1 deletions(-) commit 269c99946345efd2bbf17a7b9778615e38ae046e Author: Ryan Lortie Date: Tue Nov 15 12:28:28 2011 +0000 add boxed types for GSettingSchema{,Source} gio/gio.symbols | 2 ++ gio/gsettingsschema.c | 3 +++ gio/gsettingsschema.h | 8 +++++++- 3 files changed, 12 insertions(+), 1 deletions(-) commit c25a36c920e2b884ef0856bb1bf6679ab38d7132 Author: Ryan Lortie Date: Tue Nov 15 11:56:18 2011 +0000 Drop the 'schema_name' field of GSettings This is strictly redundant now that we can get the ID from the schema itself. Its only other purpose was to get the schema name from the set_property() call to the constructed() call and we can avoid that by doing the schema lookup at the time of the property being set. gio/gsettings.c | 68 ++++++++++++++++++++++++++++-------------------------- 1 files changed, 35 insertions(+), 33 deletions(-) commit 48b99017de2057666d442167d9f329b0724cec02 Author: Ryan Lortie Date: Tue Nov 15 11:39:12 2011 +0000 speak of 'schema id' rather than 'schema name' Schemas are identified by id='' in the xml file, so we should use the same language on the C and GObject property APIs. gio/gio.symbols | 2 +- gio/gsettings.c | 38 +++++++++++++++++++------------------- gio/gsettingsschema.c | 25 ++++++++++++------------- gio/gsettingsschema.h | 4 ++-- 4 files changed, 34 insertions(+), 35 deletions(-) commit 736a286dce9dec2d9b331ed0df14fb984107a254 Author: Ryan Lortie Date: Tue Nov 15 11:31:58 2011 +0000 GSettings: deprecate 'schema' property This should have been called 'schema-name'. gio/gsettings.c | 45 ++++++++++++++++++++++++++++++++++----------- 1 files changed, 34 insertions(+), 11 deletions(-) commit 3bcf1137f4f9a9c84814f3a2102d06d90858daa2 Author: Ryan Lortie Date: Tue Nov 15 08:03:38 2011 +0000 drop the now-trivial g_settings_schema_new Combine it into g_settings_constructed() gio/gsettings.c | 12 +++++++++++- gio/gsettingsschema-internal.h | 2 -- gio/gsettingsschema.c | 19 ------------------- 3 files changed, 11 insertions(+), 22 deletions(-) commit d5fb032f726dfc712a3e863adc6707c205b69da3 Author: Ryan Lortie Date: Tue Nov 15 08:00:16 2011 +0000 new public header: gsettingsschema.h Expose some GSettingsSchemaSource and GSettingsSchema APIs. These are mostly useless so far... gio/Makefile.am | 1 + gio/gio.h | 1 + gio/gio.symbols | 8 +++++++ gio/gsettingsschema-internal.h | 12 +---------- gio/gsettingsschema.c | 1 + gio/gsettingsschema.h | 43 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 55 insertions(+), 11 deletions(-) commit 2633f2903ea3ec5f5019f6c3fe57b687fd2d3eb9 Author: Ryan Lortie Date: Tue Nov 15 07:47:56 2011 +0000 Add non-aborting g_settings_schema_source_lookup() And rewrite g_settings_schema_new() in terms of it gio/gsettingsschema.c | 66 ++++++++++++++++++++++++++++++++++-------------- 1 files changed, 47 insertions(+), 19 deletions(-) commit bf5626ddc20f973baf92edfc3c888ef77e9de1db Author: Ryan Lortie Date: Tue Nov 15 07:31:20 2011 +0000 GSettingSchemaSource: add refcounting gio/gsettingsschema.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) commit e01a43b6216a27194fddcabe9e864ab40c052d50 Author: Ryan Lortie Date: Tue Nov 15 07:24:48 2011 +0000 GSettingsSchema: use our own linked lists Switch from GSList for the list of schema sources to using our own linked list type called GSettingsSchemaSource. gio/gsettingsschema.c | 46 +++++++++++++++++++++++++++++++--------------- 1 files changed, 31 insertions(+), 15 deletions(-) commit 5ec84e805626657d0470accfebea72ddcbadf052 Author: Ryan Lortie Date: Tue Nov 15 07:16:48 2011 +0000 GSettingsSchema: alter our 'reverse' technology Instead of building a reversed linked list by prepending in order and then reversing it at the end, prepend in reverse by iterating backwards through the directories (to get a list in-order when we're done). gio/gsettingsschema.c | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) commit 104f7353a7c86a8a34b1b284d1b7d453eacb0c74 Author: Ryan Lortie Date: Mon Nov 14 17:15:58 2011 +0100 move GSettingsSchemaKey to gsettingsschema.c These functions no longer have anything to do with GSettings itself, so they should not be in that file anymore. GSettings still wants direct access to the GSettingsSchemaKey structure, so put that one in gsettingsschema-internal.h. gio/gsettings.c | 333 +--------------------------------------- gio/gsettingsschema-internal.h | 50 ++++++ gio/gsettingsschema.c | 312 +++++++++++++++++++++++++++++++++++++ 3 files changed, 363 insertions(+), 332 deletions(-) commit 53b591854586171c05ea602795e27982faea5eaa Author: Ryan Lortie Date: Mon Nov 14 17:08:31 2011 +0100 GSettingsSchemaKey: store the GSettingsSchema* gio/gsettings.c | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) commit 54964e22d481f0ebac8bd3c0fb13fd7569013b57 Author: Ryan Lortie Date: Mon Nov 14 17:03:57 2011 +0100 g_settings_schema_key_init: take GSettingsSchema* instead of of GSettings * gio/gsettings.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) commit 10907cafc39958fc65b8c8082cbbe08b53e96659 Author: Ryan Lortie Date: Mon Nov 14 17:02:04 2011 +0100 add internal g_settings_schema_get_name() gio/gsettingsschema-internal.h | 2 ++ gio/gsettingsschema.c | 6 ++++++ 2 files changed, 8 insertions(+), 0 deletions(-) commit e6b4074e41ae379a17768b199c5adc2a1a3e02cb Author: Ryan Lortie Date: Sun Nov 13 23:47:49 2011 +0100 rename GSettingsKeyInfo to GSettingsSchemaKey gio/gsettings.c | 347 +++++++++++++++++++++++++++---------------------------- 1 files changed, 169 insertions(+), 178 deletions(-) commit 426b146e5f31fa4d788dfd78857499dabf64000e Author: Ryan Lortie Date: Sun Nov 13 23:38:47 2011 +0100 GSettingsKeyInfo: rename field 'key' to 'name' gio/gsettings.c | 44 +++++++++++++++++++++----------------------- 1 files changed, 21 insertions(+), 23 deletions(-) commit ca2004fe73ca853bc1f9ade6160c1b59d2865c67 Author: Ryan Lortie Date: Sun Nov 13 23:35:27 2011 +0100 remove GSettings* from GSettingsKeyInfo This way GSettingsKeyInfo depends strictly on the information in the schema. Pass the GSettings* around separately where we need it. gio/gsettings.c | 48 ++++++++++++++++++++++++------------------------ 1 files changed, 24 insertions(+), 24 deletions(-) commit d6c3c2f3c2fe0f22870abb643853640dba5cc8be Author: Ryan Lortie Date: Sun Nov 13 23:31:39 2011 +0100 store some extra info in GSettingsKeyInfo gio/gsettings.c | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-) commit f60e0e724286fc85c03c7c739474390cd4c27c62 Author: Ryan Lortie Date: Sun Nov 13 23:24:24 2011 +0100 GSettingsKeyInfo: drop unused variable gio/gsettings.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 11ef4d7981d81746d25296e3336a390f1a3330a8 Author: Ryan Lortie Date: Sun Nov 13 21:41:01 2011 +0100 rename gsettingsschema.h to -internal.h gio/gsettings.c | 2 +- gio/gsettingsschema-internal.h | 50 +++++++++++++++++++++++++++++++++++++ gio/gsettingsschema.c | 2 +- gio/gsettingsschema.h | 54 ---------------------------------------- 4 files changed, 52 insertions(+), 56 deletions(-) commit 577faeae5bcdff8431c298c9275bf7703d8b6a22 Author: Ryan Lortie Date: Sun Nov 13 21:38:31 2011 +0100 unGObjectify GSettingsSchema gio/gsettings.c | 2 +- gio/gsettingsschema.c | 82 ++++++++++++++++++++++--------------------------- gio/gsettingsschema.h | 34 +++----------------- 3 files changed, 43 insertions(+), 75 deletions(-) commit eaaf18960f84989cfe2ac927ad5e19a0c56524de Author: Christian Persch Date: Thu Nov 17 14:21:24 2011 +0100 Fix the fix for G*_TO_POINTER casts on 32 bits The 'fix' from commit 16292dd753cb63f8ccb2267644aefbd2632dd52c broke the build on 32 bit because it was missing the parentheses around "gint" / "guint" in glib_gp[u]i_cast. https://bugzilla.gnome.org/show_bug.cgi?id=661546 configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit affbdd8206edcb89eadcae4a0453da76e8bd723f Author: Jorge González Date: Thu Nov 17 14:21:12 2011 +0100 Updated Spanish translation po/es.po | 190 +++++++++++++++++++++++++++++++------------------------------ 1 files changed, 97 insertions(+), 93 deletions(-) commit 6d405f81c2778dff2df4a36748bf98647f385497 Author: Daniel Mustieles Date: Thu Nov 17 12:36:54 2011 +0100 Updated Spanish translation po/es.po | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 59 insertions(+), 7 deletions(-) commit 9e19b6fe0fefc5c6c26e749a56418061ce339154 Author: Matthias Clasen Date: Thu Nov 17 00:01:18 2011 -0500 Fix doc formatting gmodule/gmodule.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 1a08591c3a953d53fb22b8da59b2023d278590d6 Author: Matthias Clasen Date: Wed Nov 16 21:42:28 2011 -0500 Deal gracefully with NULL log domains glib/gmessages.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 877c0ad5b885f598006f576a5756dd7cda1ef4ee Author: Ryan Lortie Date: Wed Nov 16 15:46:19 2011 +0000 [notify] remove some rather bogus 'inline' use gobject/gobject.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 9253f38a908f4b3304e2e195c87aad7b098e8bac Author: Ryan Lortie Date: Wed Nov 16 15:45:31 2011 +0000 [notify] add warning to gobjectnotifyqueue.c Mention that this file gets installed, so people should probably not modify it. gobject/gobjectnotifyqueue.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit ac0ddcf23f4f57efc2f4e6f370022586d7897f6a Author: Ryan Lortie Date: Wed Nov 16 13:02:23 2011 +0000 [notify] dispatch 'notify' directly if not frozen Avoid the notify queue in the case that we're not already frozen. gobject/gobject.c | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) commit 39458748dd32c8745f60e8ba83bd35ad9ceebb12 Author: Ryan Lortie Date: Wed Nov 16 15:42:36 2011 +0000 [notify] add 'conditional' to _notify_queue_freeze When the 'conditional' parameter is TRUE, the queue will only be frozen (ie: have its freeze count increase by one) if it is already frozen. This will allow us to avoid a freeze-notify-thaw in the case that we just want to notify on a single property. Another approach may have been to add an is_frozen() type call and avoid even increasing the freeze count at all in this case. Unfortunately, I'm not totally sure what is the exact expected semantics of simultaneous notifications in multiple threads and this may interact badly with someone freezing or thawing in between our check and emission. gobject/gobject.c | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) commit 393d4c28b4af6aea45100edc636c116d38dca460 Author: Ryan Lortie Date: Wed Nov 16 15:41:06 2011 +0000 [notify] Remove GObjectNotifyContext indirection This silly abstraction is causing more trouble than it's worth -- just use the relevant bits directly. gobject/gobject.c | 60 +++++++++++++++------------------------------------- 1 files changed, 18 insertions(+), 42 deletions(-) commit 8215fc5f255ae499904534042ac08e221c4f5f13 Author: Ryan Lortie Date: Wed Nov 16 15:38:25 2011 +0000 [notify] lift some logic out of _notify_queue_add Lift the check-if-READABLE and redirect-target logic from out of g_object_notify_queue_add() into its own function, get_notify_pspec(). Use that function at the site of our two calls to g_object_notify_queue_add(). gobject/gobject.c | 63 +++++++++++++++++++++++++++++++++++----------------- 1 files changed, 42 insertions(+), 21 deletions(-) commit 760037ec46bb3a8af8ea98e06a624a3ebac1cb1a Author: Ryan Lortie Date: Wed Nov 16 15:37:17 2011 +0000 [notify] remove an obviously false comment gobject/gobject.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 45d80cf9bdd4ee3edaa64069dd16ad220d615c4e Author: Ryan Lortie Date: Wed Nov 16 15:36:57 2011 +0000 [notify] lift some code outside of critical region gobject/gobject.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 1d98f931946c45301531a576107f5f9d12d63c28 Author: Ryan Lortie Date: Wed Nov 16 15:35:58 2011 +0000 [notify] drop some unused code gobject/gobject.c | 28 ---------------------------- 1 files changed, 0 insertions(+), 28 deletions(-) commit 128862eafe49b5454c4b32b0866800d4aa7c53f3 Author: Ryan Lortie Date: Wed Nov 16 15:31:58 2011 +0000 [notify] merge gobjectnotifyqueue.c into gobject.c This was done as a separate file before, and #include brought it into gobject.c. That's a bit mad, so stop doing that. Unfortunately, the insanity steps up a level: gobjectnotifyqueue.c is installed in the public include dir, so we can't just get rid of it entirely. gobject/gobject.c | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 160 insertions(+), 2 deletions(-) commit 688059cb9402281f8922827dc98fe76b914f21cf Author: Ryan Lortie Date: Wed Nov 16 12:47:40 2011 +0000 [notify] remove some useless forward declarations These cause trouble in the next commit. gobject/gobject.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit 3c66ada4358ca0a8d9c31a14d45c13cd9de0b084 Author: Benjamin Otte Date: Wed Nov 2 00:31:50 2011 +0100 localfileenumerator: Improve non-stat'ing code We now avoid the per-enumerated-file stat for type and names. We could improve this further by moving things to the no_stat function, but this is what the file chooser needs for autocomplete, so I am happy. gio/glocalfileenumerator.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 93aea49bd7a8fa29d4ad857fd5de9f282edd8603 Author: Benjamin Otte Date: Tue Nov 1 23:37:35 2011 +0100 localfileinfo: Split out attributes that don't need a stat This will be used in the next commit. gio/glocalfileinfo.c | 80 +++++++++++++++++++++++++++---------------------- gio/glocalfileinfo.h | 10 ++++++ 2 files changed, 54 insertions(+), 36 deletions(-) commit 8863071b9d17fa37036549b8c6579736d259a9cd Author: Benjamin Otte Date: Tue Nov 1 23:21:42 2011 +0100 localfileenumerator: Take the type from the readdir() call That way, we can avoid stat() calls for all enumerated files in various cases. In particular in the autocompletion code in the GTK filechooser. configure.ac | 2 + gio/glocalfileenumerator.c | 96 +++++++++++++++++++++++++++++++++++++------ 2 files changed, 84 insertions(+), 14 deletions(-) commit 6fe9791f2401c7842ed8e4b72e62296f1da1e47d Author: Benjamin Otte Date: Tue Nov 1 20:12:27 2011 +0100 gio: Add tests for g_file_attribute_matcher_subtract() gio/tests/fileattributematcher.c | 90 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 90 insertions(+), 0 deletions(-) commit 1985d54bb2eee39e88e62d1b749bf85f43a55721 Author: Benjamin Otte Date: Tue Nov 1 20:11:47 2011 +0100 fileinfo: Add g_file_attribute_matcher_subtract() Added as public API so I can write tests, the use case is local. docs/reference/gio/gio-sections.txt | 1 + gio/gfileinfo.c | 83 ++++++++++++++++++++++++++++++++++- gio/gfileinfo.h | 2 + gio/gio.symbols | 1 + 4 files changed, 85 insertions(+), 2 deletions(-) commit 60c42f66482f0b3c7cd9353156de99e077fc73c7 Author: Benjamin Otte Date: Tue Nov 1 19:12:17 2011 +0100 tests: Add tests for fileattributematchers gio/tests/Makefile.am | 4 ++ gio/tests/fileattributematcher.c | 88 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 0 deletions(-) commit b400127b3eb6039ecfcada3fa398f8aecb4945bd Author: Benjamin Otte Date: Tue Nov 1 19:06:39 2011 +0100 fileinfo: Add g_file_attribute_matcher_to_string() This is to be mainly used for debugging and tests. docs/reference/gio/gio-sections.txt | 1 + gio/gfileinfo.c | 40 +++++++++++++++++++++++++++++++++++ gio/gfileinfo.h | 1 + gio/gio.symbols | 1 + 4 files changed, 43 insertions(+), 0 deletions(-) commit 86d29e4e7302525b178ff7fb7463026243c89603 Author: Benjamin Otte Date: Tue Nov 1 17:50:22 2011 +0100 fileinfo: Store namespace::* as 0th attribute This way, we can get_attribute() namespaces. This will be important in the next commit. gio/gfileinfo.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 128e0cb787dedc0bb57f7f1fbdc52aa20c20d9b6 Author: Benjamin Otte Date: Tue Nov 1 13:58:09 2011 +0100 fileinfo: Change the way attribute matchers are created We now sort the matchers and remove unnecessary duplicates (like removing standard:type when we already match standard:*), so that we can do more complex operations on them easily in later commits. gio/gfileinfo.c | 102 ++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 74 insertions(+), 28 deletions(-) commit 1850d23f52639a5eaf33551fad7a1936edbbfb0a Author: Benjamin Otte Date: Tue Nov 1 12:47:33 2011 +0100 fileinfo: Remove optimization for GFileAttributeMatcher It makes code more complicated, in particular the code I'm about to add. gio/gfileinfo.c | 100 +++++++++++++++--------------------------------------- 1 files changed, 28 insertions(+), 72 deletions(-) commit 16292dd753cb63f8ccb2267644aefbd2632dd52c Author: Lucas De Marchi Date: Thu Oct 6 11:18:03 2011 -0300 Fix G*_TO_POINTER casts on 32 bits If we don't do the cast to the proper size in 32 bits, things like below doesn't work: uint8_t u = 20; void *p; p = GUINT_TO_POINTER(u); Signed-off-by: Colin Walters https://bugzilla.gnome.org/show_bug.cgi?id=661546 configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 3a7960f75730fdde77652b97ad6492004c5b1ec1 Author: Alexander Larsson Date: Fri Nov 4 16:45:41 2011 +0100 win32: Make g_get_monotonic_clock lockless glib/gmain.c | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) commit 8d023c2706c1aca43dd04e807dd7d78aee96f202 Author: Alexander Larsson Date: Fri Nov 4 15:42:38 2011 +0100 win32: Use timeGetTime as monotonic base This allows apps that need it to increase timer accuracy using timeBeginPeriod configure.ac | 2 +- glib/gmain.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++-- glib/makefile.msc.in | 2 +- 3 files changed, 68 insertions(+), 5 deletions(-) commit 64dec8ad9ff3d9be7d66b11d5f2b22ce3e0954aa Author: Alexander Larsson Date: Fri Nov 4 11:27:00 2011 +0100 win32: Add a monotonic timer glib/glib-init.c | 1 + glib/glib-init.h | 1 + glib/gmain.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 2 deletions(-) commit 2056906bb7504e520aae5ab3fc69fa3f80da1da0 Author: Piotr Drąg Date: Tue Nov 15 20:46:17 2011 +0100 Updated POTFILES.in po/POTFILES.in | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 8d4a141b14dda229a9074d14e9288cddc3191536 Author: Daniel Mustieles Date: Tue Nov 15 17:37:39 2011 +0100 Updated Spanish translation po/es.po | 5989 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 2998 insertions(+), 2991 deletions(-) commit f08a1d126c2aba7d23c107a7c6882cf0f850b6f4 Author: Javier Jardón Date: Tue Nov 15 12:11:55 2011 +0000 docs: Remove tmpl directory We use inline comments now docs/reference/glib/tmpl/.gitignore | 74 --- docs/reference/glib/tmpl/glib-unused.sgml | 1015 ----------------------------- 2 files changed, 0 insertions(+), 1089 deletions(-) commit 469e1a15a0eea2cf355fba245343a3ac1c29662b Author: Sjoerd Simons 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) glib/tests/1bit-mutex.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 65eb65b7779e5e6ec72de9bb372568d88b1ec7bb Author: Matthias Clasen Date: Mon Nov 14 23:30:18 2011 -0500 Avoid unused variable warnings in g_ascii_strtod glib/gstrfuncs.c | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) commit 7c0ee79e348cfa3711ecf74f1c0e4d9a2e29864e Author: Matthias Clasen Date: Mon Nov 14 22:18:13 2011 -0500 GThread: handle thread names safely Avoid a race condition where the string may be freed before the new thread got around to using it. Also add a test for thread names. https://bugzilla.gnome.org/show_bug.cgi?id=663381 glib/gthread.c | 13 +++++++++---- glib/gthreadprivate.h | 2 +- glib/tests/thread.c | 28 ++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 5 deletions(-) commit 375015018bb16cdd02708e1df0953d91916033ca Author: Matthias Clasen Date: Mon Nov 14 21:18:12 2011 -0500 Switch to using template-free docs build All docs are finally inline, so we can do this switch. configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3f0d275295d0dbf8028e77c3f7ef662c3a41cdf3 Author: Matthias Clasen Date: Mon Nov 14 07:44:52 2011 -0500 Move remaining docs inline This introduces a fake source file just for holding docs that have no good place elsewhere. Not great, but better than templates. docs/reference/glib/glib-docs.sgml | 1 - docs/reference/glib/glib-sections.txt | 133 +- docs/reference/glib/tmpl/.gitignore | 8 + docs/reference/glib/tmpl/byte_order.sgml | 628 ------- docs/reference/glib/tmpl/limits.sgml | 253 --- docs/reference/glib/tmpl/macros.sgml | 233 --- docs/reference/glib/tmpl/macros_misc.sgml | 743 -------- docs/reference/glib/tmpl/numerical.sgml | 121 -- docs/reference/glib/tmpl/type_conversion.sgml | 125 -- docs/reference/glib/tmpl/types.sgml | 327 ---- docs/reference/glib/tmpl/windows.sgml | 142 -- glib/Makefile.am | 1 + glib/docs.c | 2259 +++++++++++++++++++++++++ glib/gtimer.c | 11 + 14 files changed, 2330 insertions(+), 2655 deletions(-) commit 127df9bd83d610cb989e63037f3e3a6b64c034e0 Author: Matthias Clasen Date: Mon Nov 14 21:06:30 2011 -0500 Move GModule docs inline docs/reference/glib/tmpl/.gitignore | 1 + docs/reference/glib/tmpl/modules.sgml | 291 --------------------------------- gmodule/gmodule.c | 258 ++++++++++++++++++++++++++++- 3 files changed, 250 insertions(+), 300 deletions(-) commit 2195e20dce58ab14db40187dbcd78682e4287889 Author: Matthias Clasen Date: Sun Nov 13 15:37:56 2011 -0500 Move GDate docs inline docs/reference/glib/tmpl/.gitignore | 1 + docs/reference/glib/tmpl/date.sgml | 822 ----------------------------------- glib/gdate.c | 638 +++++++++++++++++++++++++++- 3 files changed, 637 insertions(+), 824 deletions(-) commit 18da6e6be97c838edf6ef150b196b428ff3118cf Author: Matthias Clasen Date: Sun Nov 13 00:43:50 2011 -0500 Move i18n docs inline docs/reference/glib/tmpl/.gitignore | 1 + docs/reference/glib/tmpl/i18n.sgml | 252 ----------------------------------- glib/ggettext.c | 156 +++++++++++++++++++++ 3 files changed, 157 insertions(+), 252 deletions(-) commit c8b0617a2b9b71ca89b9fdd0e6f3b6afdd255a49 Author: Matthias Clasen Date: Sun Nov 13 00:26:57 2011 -0500 Move slice and hook docs inline docs/reference/glib/tmpl/.gitignore | 2 + docs/reference/glib/tmpl/hooks.sgml | 470 --------------------------- docs/reference/glib/tmpl/memory_slices.sgml | 256 --------------- glib/ghook.c | 421 ++++++++++++++++++++++++- glib/gslice.c | 255 +++++++++++++++ 5 files changed, 676 insertions(+), 728 deletions(-) commit bad6c0ad1516ab149d2917c8db9d84a235c4667c Author: Dan Winship Date: Mon Nov 14 19:46:02 2011 -0500 GSocketClient: improve error messages on connection failure Include the hostname (or proxy hostname if it was the connection to the proxy server that failed) in the GError message when g_socket_client_connect* fail. https://bugzilla.gnome.org/show_bug.cgi?id=661266 gio/gsocket.c | 7 ++--- gio/gsocketclient.c | 55 +++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 52 insertions(+), 10 deletions(-) commit 74dad004d143a2d3fbe4171d20e57cc9942ad89d Author: Dan Winship Date: Mon Nov 14 18:27:34 2011 -0500 GUnixInput/OutputStream: fix blocking methods to always block Previously, if you created a GUnixInputStream or GUnixOutputStream from a non-blocking file descriptor, it might sometimes return G_IO_ERROR_WOULD_BLOCK from g_input_stream_read/g_output_stream_write, which is wrong. Fix that. (Use the GPollableInput/OutputStream methods if you want non-blocking I/O.) Also, add a test for this to gio/tests/unix-streams. Also, fix the GError messages to say "Error reading from file descriptor", etc instead of "Error reading from unix" (which was presumably from a bad search and replace job). https://bugzilla.gnome.org/show_bug.cgi?id=626866 gio/gunixinputstream.c | 48 +++++++++++++++++++++++----------------- gio/gunixoutputstream.c | 54 ++++++++++++++++++++++++++------------------- gio/tests/unix-streams.c | 24 ++++++++++++++++++- 3 files changed, 81 insertions(+), 45 deletions(-) commit 29f786851d9fb8c8229161087e55254e379ef6e7 Author: Dan Winship Date: Mon Nov 14 13:55:14 2011 -0500 Fix glib/tests/utils for g_parse_debug_string() changes glib/tests/utils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fe5ba0f291c11a22fbfe812d1c8315837fa14177 Author: Dan Winship Date: Sun Jun 12 15:59:36 2011 -0400 add GNetworkMonitor, for... monitoring the network Add GNetworkMonitor and its associated extension point, provide a base implementation that always claims the network is available, and a netlink-based implementation built on top of that that actually tracks the network state. https://bugzilla.gnome.org/show_bug.cgi?id=620932 configure.ac | 4 + docs/reference/gio/gio-docs.xml | 5 +- docs/reference/gio/gio-sections.txt | 20 ++ gio/Makefile.am | 11 + gio/gio.h | 1 + gio/gio.symbols | 10 + gio/giomodule.c | 11 + gio/giotypes.h | 1 + gio/gnetworkmonitor.c | 261 ++++++++++++++++++++ gio/gnetworkmonitor.h | 89 +++++++ gio/gnetworkmonitorbase.c | 412 +++++++++++++++++++++++++++++++ gio/gnetworkmonitorbase.h | 66 +++++ gio/gnetworkmonitornetlink.c | 465 +++++++++++++++++++++++++++++++++++ gio/gnetworkmonitornetlink.h | 57 +++++ gio/tests/.gitignore | 1 + gio/tests/Makefile.am | 3 + gio/tests/network-monitor.c | 463 ++++++++++++++++++++++++++++++++++ 17 files changed, 1878 insertions(+), 2 deletions(-) commit eb9755dc9c765cd0381f8b6d897e6ff4f7582a0a Author: Dan Winship Date: Sat Oct 1 08:31:54 2011 -0400 GInetAddressMask: new type for internet address range matching Eg, for matching a GInetAddress to a range like "10.0.0.0/8" or "fe80::/10" https://bugzilla.gnome.org/show_bug.cgi?id=620932 docs/reference/gio/gio-docs.xml | 1 + docs/reference/gio/gio-sections.txt | 25 ++ gio/Makefile.am | 2 + gio/ginetaddressmask.c | 463 +++++++++++++++++++++++++++++++++++ gio/ginetaddressmask.h | 78 ++++++ gio/gio.h | 1 + gio/gio.symbols | 9 + gio/giotypes.h | 1 + 8 files changed, 580 insertions(+), 0 deletions(-) commit fac9e8d29f3b73afb17feca1fefe51986a09327c Author: Dan Winship Date: Sun Nov 13 16:39:45 2011 -0500 gunixinput/outputstream: fix docs Don't try to link to the docs of undocumented private classes gio/gunixinputstream.c | 3 +-- gio/gunixoutputstream.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) commit 9b4cc6edf4a698597c0cee9a5ef4d40ad13aa888 Author: Dan Winship Date: Tue Apr 27 16:54:18 2010 -0400 GUnixInputStream, GUnixOutputStream: support ordinary files better If the fd is not a pipe or socket, fall back to using threads to do async I/O rather than poll, since poll doesn't work the way you want for ordinary files. https://bugzilla.gnome.org/show_bug.cgi?id=606913 gio/gunixinputstream.c | 34 +++++++++++++++++++++++++++++----- gio/gunixoutputstream.c | 34 +++++++++++++++++++++++++++++----- 2 files changed, 58 insertions(+), 10 deletions(-) commit e60846dc78b9dace8d27276f7ef512e209dba7b3 Author: Matthias Clasen Date: Sat Nov 12 22:52:24 2011 -0500 Some more docs reshuffling docs/reference/glib/building.sgml | 980 ++++++++++++++++-------------------- docs/reference/glib/glib-docs.sgml | 132 +++--- 2 files changed, 509 insertions(+), 603 deletions(-) commit 06bb6c75a2e5e6e0c3bfcb99ae829143768e1702 Author: Matthias Clasen Date: Sat Nov 12 21:54:42 2011 -0500 More consistent doc formatting Move some things around, make capitalization of short descriptions more consistent. docs/reference/glib/glib-docs.sgml | 6 +- docs/reference/glib/gvariant-text.xml | 4 + docs/reference/glib/gvariant-varargs.xml | 7 +- docs/reference/glib/regex-syntax.sgml | 9 +- docs/reference/glib/running.sgml | 237 +++++++++++++++--------------- glib/gchecksum.c | 2 +- glib/gconvert.c | 2 +- glib/gdatetime.c | 2 +- glib/ghmac.c | 2 +- glib/glist.c | 4 +- glib/gslist.c | 4 +- glib/gtimezone.c | 2 +- glib/gurifuncs.c | 7 +- glib/gversion.c | 2 +- 14 files changed, 148 insertions(+), 142 deletions(-) commit 599f254066beb3bdad1d4fb70a7afd28c45d7634 Author: Matthias Clasen Date: Sat Nov 12 19:13:44 2011 -0500 Cleanups to debug env var handling glib/glib-init.c | 6 +++--- glib/gslice.c | 48 ++++++++++++++++++------------------------------ gobject/gtype.c | 13 +++++-------- 3 files changed, 26 insertions(+), 41 deletions(-) commit 943a18b5643443438820eae3453d3b279213547e Author: Matthias Clasen Date: Sat Nov 12 18:36:52 2011 -0500 Parse G_DEBUG only once glib/glib-init.c | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) commit 5d9f05eef147f17d71e38c9fba2e3f622c9ed21b Author: Matthias Clasen Date: Sat Nov 12 10:26:31 2011 -0500 glib-unix.h: Add G_BEGIN/END_DECLS The omission was pointed out in bug 663880. glib/glib-unix.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit faebf0f6536f85bfc4afd81a69d9d46383031fa6 Author: Chun-wei Fan Date: Sat Nov 12 10:38:31 2011 +0800 gstrfuncs.c: Fix variable declaration Declare variables at top of block to stop C89 compilers from complaining. glib/gstrfuncs.c | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) commit 0f01bef4b458b73f2500ad8926b9c8a886215dc3 Author: Simon McVittie 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 Reviewed-by: Colin Walters gio/gdbusprivate.c | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) commit 214d249f40de028c5f76cea6ed665af5e1cf45d0 Author: Simon McVittie 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 Reviewed-by: Colin Walters gio/gdbusprivate.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit fc21c6ced0f1d7e6c8960b2e1439d814a960e7bf Author: Simon McVittie 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 Reviewed-by: Colin Walters gio/tests/gdbus-exit-on-close.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit f0c383917bdae58393410f2c3052bad2a4b51d9e Author: Simon McVittie 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 Reviewed-by: Colin Walters gio/tests/gdbus-exit-on-close.c | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) commit 759c0e935d0d189aebbb7ff8186c397e88477c7f Author: Dan Winship Date: Sat Sep 3 09:03:17 2011 -0400 gio: more implementations of GFileDescriptorBased Implement GFileDescriptorBased in GSocket{Input,Output}Stream and GUnix{Input,Output}Stream. https://bugzilla.gnome.org/show_bug.cgi?id=616852 gio/gsocketinputstream.c | 27 ++++++++++++++++++++++++++- gio/gsocketoutputstream.c | 29 +++++++++++++++++++++++++++-- gio/gunixinputstream.c | 12 +++++++++++- gio/gunixoutputstream.c | 12 +++++++++++- 4 files changed, 75 insertions(+), 5 deletions(-) commit f218353e04ca61dbf5e4d7a3a024fe414dbfa46a Author: Kristian Rietveld Date: Wed Nov 9 08:32:33 2011 +0100 Need to include xlocale.h on Darwin for strtod_l This fixes the build of gstrfuncs.c on Darwin. configure.ac | 2 ++ glib/gstrfuncs.c | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-) commit fb95c20c965bc241fc9d519afede94d3bc7838a8 Author: Marc-André Lureau Date: Mon Nov 7 20:04:15 2011 +0100 Add G_SIGNAL_DEPRECATED Similar to G_PARAM_DEPRECATED. It will warn only for users of the signals, so a signal can still be emited without warning, for compatibility reasons. Apparently, there is no way user flags could have been used before, so that shouldn't break anyone. https://bugzilla.gnome.org/show_bug.cgi?id=663581 gobject/gobject.c | 2 +- gobject/gsignal.c | 32 +++++++++++++++++++++++++++++++- gobject/gsignal.h | 8 ++++++-- 3 files changed, 38 insertions(+), 4 deletions(-) commit f09e71aff05bfa07e58c68b2dd8396ed760e4666 Author: Dan Winship Date: Mon Nov 7 13:50:00 2011 -0500 gio/tests/proxy: don't use deprecated functions gio/tests/proxy.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a5bf1c117b9042906763d166f396e8cccaf48f91 Author: Dan Winship Date: Mon Nov 7 13:48:30 2011 -0500 Fix g_variant_get_gtype() deprecation message Instead of: warning: ‘g_variant_get_gtype’ is deprecated (declared at ../../gobject/glib-types.h:242): Use '((GType) ((21) << (2)))' instead [-Wdeprecated-declarations] show: warning: ‘g_variant_get_gtype’ is deprecated (declared at ../../gobject/glib-types.h:242): Use ''G_VARIANT_GET_TYPE'' instead [-Wdeprecated-declarations] Also, document the macro-expansion problem in the G_GNUC_DEPRECATED_FOR docs docs/reference/glib/tmpl/macros_misc.sgml | 7 +++++++ gobject/glib-types.h | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-) commit 7d1c7af1a6ed30d4caec244ac8ebe47dc86bf04f Author: Benjamin Otte 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 14677e16d8ac6b7bdb22885ef94ae889f67751ee Author: Benjamin Otte Date: Mon Jul 25 13:08:59 2011 +0200 docs: Tell which function to use to avoid errors. glib/gvarianttype.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 0e283dcb94a6be20ccc0b8446c3df70ff14d36f1 Author: Chun-wei Fan Date: Mon Nov 7 14:14:45 2011 +0800 Update VS property sheets gmain.h was added into the list of deprecated headers, so "install" that as weel. build/win32/vs10/glib.props | 2 ++ build/win32/vs9/glib.vsprops | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) commit fc0b8d4f28c1d3d24a0d92b134ebbe74966a4a73 Author: Matthias Clasen 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 deletions(-) commit 7ec69ecd3207abc750291231c37739d16d8d5a42 Author: Matthias Clasen Date: Mon Nov 7 00:13:56 2011 -0500 Accept CDATA in gschema.xml files gio/glib-compile-schemas.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 41b8ce7100fa5fa4ecb01555e52b3664bcc41b28 Author: Alexander Larsson Date: Thu Nov 3 17:27:08 2011 +0100 win32: Remove some debug spew on startup This is not needed anymore and was causing problems for pkg-config. glib/gthread-win32.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) commit d2d62ecfcd09f91ed423b66b5b21be602dce2ecd Author: Matthias Clasen Date: Thu Nov 3 01:48:54 2011 -0400 Make the default log handler more useful We make the default log handler only print default and informational messages if the log domain is explicitly requested. https://bugzilla.gnome.org/show_bug.cgi?id=661926 docs/reference/glib/running.sgml | 34 +++++++++++++++++++++++++++++++++- glib/gmessages.c | 37 +++++++++++++++++++++++++++++++++++++ glib/tests/logging.c | 23 ++++++++++++++++++++++- 3 files changed, 92 insertions(+), 2 deletions(-) commit 7456b43c3e31355c97c19218e1e75eb44611d12f Author: Matthias Clasen Date: Thu Nov 3 00:39:31 2011 -0400 Move old deprecated gmain api into deprecated/ glib/Makefile.am | 1 + glib/deprecated/gmain.h | 138 +++++++++++++++++++++++++++++++++++++++++++++++ glib/glib.h | 1 + glib/gmain.h | 100 ---------------------------------- 4 files changed, 140 insertions(+), 100 deletions(-) commit a3c8712c4bc8c8ed4e7523ee06766436a6a84c0e Author: Matthias Clasen Date: Thu Nov 3 00:30:56 2011 -0400 Remove single-include guards in deprecated/ Not allowed to include these headers single anymore, either. glib/deprecated/gallocator.h | 2 +- glib/deprecated/gcompletion.h | 2 +- glib/deprecated/grel.h | 2 +- glib/deprecated/gthread.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 5896808e8c6a66db34d9c0c5562a3bef00357a25 Author: Matthias Clasen Date: Thu Nov 3 00:16:41 2011 -0400 GIO: Don't use G_DISABLE_DEPRECATED for functions gio/gdesktopappinfo.c | 2 -- gio/gdesktopappinfo.h | 6 ++++-- gio/gdrive.h | 2 -- gio/gfile.h | 4 ---- gio/giomodule.c | 2 -- gio/gmount.h | 2 -- gio/gtlsconnection.h | 5 ++--- gio/gunixsocketaddress.h | 4 ---- gio/gvolume.h | 2 -- gio/gvolumemonitor.h | 3 +-- 10 files changed, 7 insertions(+), 25 deletions(-) commit 328be3938ec4b65f2d19adc531148ce8c0b1803f Author: Matthias Clasen Date: Thu Nov 3 00:09:32 2011 -0400 GObject: Don't use G_DISABLE_DEPRECATED for functions gobject/gboxed.h | 2 -- gobject/glib-types.h | 3 +-- gobject/gobject.h | 5 +---- gobject/gparam.h | 2 -- gobject/gvaluetypes.h | 7 ++----- 5 files changed, 4 insertions(+), 15 deletions(-) commit 07bcb3f8d6451de9d44c1ff5891f7fc79d8fa524 Author: Matthias Clasen Date: Thu Nov 3 00:05:29 2011 -0400 Update deprecation docs docs/reference/glib/compiling.sgml | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) commit 03766a1a38407fbbbf8c30874e6f8d46e2b0da43 Author: Matthias Clasen Date: Thu Nov 3 00:04:15 2011 -0400 Don't use G_DISABLE_DEPRECATED guards around deprecated functions I'm leaving the old-style deprecation guards in place around deprecated macros, enumeration values, etc, for now. glib/gasyncqueue.h | 2 -- glib/gatomic.h | 2 -- glib/gfileutils.h | 6 ++---- glib/ghash.h | 4 +--- glib/giochannel.c | 2 -- glib/giochannel.h | 2 -- glib/glib.h | 2 -- glib/gmain.h | 3 +-- glib/gmappedfile.h | 2 -- glib/gmessages.h | 3 +-- glib/gstrfuncs.h | 8 -------- glib/gstring.h | 6 ++---- glib/gtree.h | 2 -- glib/gunicode.h | 3 --- glib/gutils.h | 2 +- 15 files changed, 8 insertions(+), 41 deletions(-) commit f9c2362e434b2d190296f8a41a7aa68c50474923 Author: Dan Winship Date: Fri Oct 28 15:38:52 2011 -0400 glib-mkenums: add --identifier-prefix and --symbol-prefix args Allow passing --identifier-prefix and --symbol-prefix to glib-mkenums, with the same meanings as in g-ir-scanner, to allow fixing up the enum name parsing globally rather than needing to add a /<* *>/ override to each enum. https://bugzilla.gnome.org/show_bug.cgi?id=661797 docs/reference/gobject/glib-mkenums.xml | 24 +++++++++++++++++ gobject/glib-mkenums.in | 43 +++++++++++++++++++++++-------- 2 files changed, 56 insertions(+), 11 deletions(-) commit 78a0dbd8536f993094be30bf8f1e3b189f571325 Author: Dan Winship Date: Fri Oct 28 15:38:27 2011 -0400 docs: don't refer to a deprecated glib-mkenums flag Refer to the new flag instead https://bugzilla.gnome.org/show_bug.cgi?id=661797 docs/reference/gobject/glib-mkenums.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit dd4a8d333ddab043c5a6e89c0d19e56a1bdcec3e Author: Dan Winship 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 files changed, 1 insertions(+), 1 deletions(-) commit 9782598b81ffe35f892bb510c27bc0d1afffaeee Author: Aleksander Morgado 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 files changed, 3 insertions(+), 3 deletions(-) commit 1fc897352e2bd8c52f33517088213ee4b0024932 Author: David Zeuthen 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 gio/gdbusnameowning.c | 86 ++++++++++++++++++++++++++++++++++------------- gio/tests/gdbus-names.c | 29 +++++++++++++++- 2 files changed, 89 insertions(+), 26 deletions(-) commit 4c038429b10a961b59b0c4a5c7ede40fe5aee494 Author: Ryan Lortie Date: Wed Oct 26 15:10:33 2011 -0400 Revert "gthread: G_STATIC_MUTEX_INIT: Fix this for the non-win32 case." This reverts commit 52fd106724aa79ad57ecaa7ad9d340f8c89da06d. glib/deprecated/gthread.h | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) commit 52fd106724aa79ad57ecaa7ad9d340f8c89da06d Author: Murray Cumming Date: Wed Oct 26 11:38:13 2011 +0200 gthread: G_STATIC_MUTEX_INIT: Fix this for the non-win32 case. Also initialize the unused member. This was correct before but was broken when the ifndef was moved inside the GStaticMutex struct: http://git.gnome.org/browse/glib/commit/glib/gthread.h?id=24652730a9faaedb19b9e90024077eb7f75a6907 This avoids a compiler warning. glib/deprecated/gthread.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 73d22207d166d02660d8864034b3eab855ad2f54 Author: Damien Lespinau 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 files changed, 1 insertions(+), 0 deletions(-) commit ba7bf09285636a3c150a83620c6d91611aa37b05 Author: Robert Nagy 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 files changed, 13 insertions(+), 4 deletions(-) commit 6a81ced72d0d5dc835e53dd6ae6652a3c9de494b Author: Sjoerd Simons 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 5e2a2ef288abafa34213982365bf2019e882864e Author: Will Thompson Date: Thu Oct 20 16:07:03 2011 +0100 g_parse_debug_string: invert flags given besides "all" Any flags specified as well as "all" are subtracted from the result, allowing the user to specify FOO_DEBUG="all,bar,baz" to mean "give me debugging information for everything except bar and baz". https://bugzilla.gnome.org/show_bug.cgi?id=642452 glib/glib-init.c | 41 +++++++++++++++++++++++++++++------------ tests/testglib.c | 18 ++++++++++++++++-- 2 files changed, 45 insertions(+), 14 deletions(-) commit 73ffa9034f80ff08c30ff519984b5d00894c63c6 Author: Will Thompson Date: Wed Feb 16 10:48:22 2011 +0000 Test g_parse_debug_string ("all") https://bugzilla.gnome.org/show_bug.cgi?id=642452 tests/testglib.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 94a46ea410ced6904691dba16d01485b6a6283f0 Author: Matthias Clasen Date: Mon Oct 24 13:43:11 2011 -0400 Fix 'make check' with clang Patch by Elias Pipping https://bugzilla.gnome.org/show_bug.cgi?id=662491 tests/run-assert-msg-test.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 73e3c98df07ae7180922216aa3bebfb434405375 Author: Matthias Clasen 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 a124562d1bdd51de4b136725b3902b1e518d991f Author: Simon McVittie Date: Fri Oct 21 11:42:10 2011 +0100 GDBusConnection: document that this object is (meant to be) thread-safe Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661992 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit a031bacaac77d5de7388203dbe1ccc67b9142482 Author: Simon McVittie Date: Fri Oct 21 15:46:00 2011 +0100 GDBusConnection: make the closed flag atomic (but still lock to write) Strictly speaking, neither of the two uses that aren't under the lock *needs* to be atomic, but it seems better to be obviously correct (and we save another 4 bytes of struct). One of these uses is in g_dbus_connection_is_closed(), any use of which is inherently a race condition anyway. The other is g_dbus_connection_flush_sync, which as far as I can tell just needs a best-effort check, to not waste effort on a connection that has been closed for a while (but I could be wrong). I removed the check for the closed flag altogether in g_dbus_connection_send_message_with_reply_unlocked, because it turns out to be redundant with one in g_dbus_connection_send_message_unlocked, which is called immediately after. g_dbus_connection_close_sync held the lock to check the closed flag, which is no longer needed. As far as I can tell, the only reason why the lock is still desirable when setting the closed flag is so that remove_match_rule can't fail by racing with close notification from the worker thread - but on_worker_closed needs to hold the lock anyway, to deal with other data structures, so there's no point in trying to eliminate the requirement to hold the lock. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661992 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 163 +++++++++++++++++++++++++++++-------------------- 1 files changed, 96 insertions(+), 67 deletions(-) commit 9857cf8c46511b0fb1ed60ea96da8f4a310263e5 Author: Simon McVittie Date: Fri Oct 21 16:24:29 2011 +0100 GDBusConnection: document which properties are protected by @lock Also, a few that don't need to be. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661992 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) commit 8df114f5975ac8819a5a16cb4c5492a179cdfa2e Author: Simon McVittie Date: Mon Oct 17 19:27:23 2011 +0100 GDBusConnection: access the exit-on-close flag atomically This isn't strictly necessary, because in every location where it's checked, if the reading thread misses an update from another thread, it's indistinguishable from the reading thread having been scheduled before the writing thread, which is an unavoidable race condition that callers need to cope with anyway. On the other hand, merging exit_on_close into atomic_flags gives the least astonishing semantics to library users and saves 4 bytes of struct, and if you're accessing exit-on-close often enough for it to be a performance concern, you're probably doing it wrong. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661992 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) commit 3a0b60647d8fd3b7ecffd5f79641a1daa9d79299 Author: Simon McVittie Date: Mon Oct 17 13:27:03 2011 +0100 Annotate GDBusConnection private functions with thread/lock status The thread shared between all GDBusWorker instances was variously called the "worker thread" or "message handler thread", which I mostly changed to "the GDBusWorker thread" to avoid ambiguity. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661992 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 89 ++++++++++++++++++++++++++++++++++-------------- 1 files changed, 63 insertions(+), 26 deletions(-) commit a886c2b3b8396bfacf546c9c52911fabb58acc57 Author: Yaron Shahrabani Date: Sat Oct 22 12:39:15 2011 +0200 Updated Hebrew translation. po/he.po | 5798 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 2916 insertions(+), 2882 deletions(-) commit c75ee5ed17c865072c7ee7c48fbea96ea8c09a62 Author: Matej Urbančič Date: Fri Oct 21 21:24:06 2011 +0200 Updated Slovenian translation po/sl.po | 5811 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 2908 insertions(+), 2903 deletions(-) commit 9c07e7dc90b1331dab9f0e960d119d0889c7d585 Author: Ryan Lortie 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 files changed, 1 insertions(+), 1 deletions(-) commit 3d13ee1b5ff2a2ad5f32704cc5f071167a8852a6 Author: Ryan Lortie 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 files changed, 6 insertions(+), 5 deletions(-) commit e52437982c4dd1c88459f3eed0d8ad1dc167c0eb Author: Matthias Clasen Date: Fri Oct 21 14:57:47 2011 -0400 Make g_ascii_strtod behave as documented The docs explicitly state that we reset errno, so lets do that, even if we just wrap strtod_l. Also move the argument check out of the ifdef. https://bugzilla.gnome.org/show_bug.cgi?id=662398 glib/gstrfuncs.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit 848df03e16e190eddf1ee63733d85f687b65bdf9 Author: Simon McVittie Date: Wed Oct 19 17:23:30 2011 +0100 GDBusConnection: check for initializedness in most public API The only exceptions are those of the trivial getters/setters that don't already need the initialization check for its secondary role as a memory barrier (this is consistent with GSocket, where trivial getters/setters don't check): * g_dbus_connection_set_exit_on_close * g_dbus_connection_get_exit_on_close * g_dbus_connection_is_closed g_dbus_connection_set_exit_on_close needs to be safe for use before initialization anyway, so it can be set at construct-time. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661689 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit 3958a9fc1ef99b474373415d5d46d596293764f6 Author: Simon McVittie 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 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662208 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) commit a7ea94929420cafe5189b477f24da4903bec9e49 Author: Simon McVittie Date: Thu Oct 20 13:12:26 2011 +0100 GDBusConnection: check for initialization where needed for thread-safety Also document which fields require such a check in order to have correct threading semantics. This usage doesn't matches the GInitable documentation, which suggests use of a GError - but using an uninitialized GDBusConnection is programming error, and not usefully recoverable. (The GInitable documentation may have been a mistake - GNOME#662208.) Also, not all of the places where we need it can raise a GError. The check serves a dual purpose: it turns a non-deterministic crash into a deterministic critical warning, and is also a memory barrier for thread-safety. All of these functions dereference or return fields that are meant to be protected by FLAG_INITIALIZED, so they could crash or return an undefined value to their caller without this, if called from a thread that isn't the one that called initable_init() (although I can't think of any way to do that without encountering a memory barrier, undefined behaviour, or a race condition that leads to undefined behaviour if the non-initializing thread wins the race). One exception is that initable_init() itself makes a synchronous call. We deal with that by passing new internal flags up the call stack, to reassure g_dbus_connection_send_message_unlocked() that it can go ahead. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661689 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661992 Signed-off-by: Simon McVittie Reviewed-by: David Zeuthen gio/gdbusconnection.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++--- gio/gioenums.h | 2 + 2 files changed, 133 insertions(+), 8 deletions(-) commit 245d68be6ff0104783ce0b2d4bc0a139f09e0c34 Author: Simon McVittie Date: Fri Oct 21 16:02:22 2011 +0100 GDBusConnection: replace is_initialized with an atomic flag The comment implied that even failed initialization would set is_initialized = TRUE, but this wasn't the case - failed initialization would only set initialization_error, and it was necessary to check both. It turns out the documented semantics are nicer than the implemented semantics, since this lets us use atomic operations, which are also memory barriers, to avoid needing separate memory barriers or locks for initialization_error (and other members that are read-only after construction). I expect to need more than one atomically-accessed flag to fix thread safety, so instead of a minimal implementation I've turned is_initialized into a flags word. Signed-off-by: Simon McVittie Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661689 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661992 Reviewed-by: David Zeuthen gio/gdbusconnection.c | 44 +++++++++++++++++++++++++++++--------------- 1 files changed, 29 insertions(+), 15 deletions(-) commit e1a481ec0ab4b727632e9ef5d74e001318ab84a2 Author: Chun-wei Fan Date: Thu Oct 20 14:42:51 2011 +0800 Fix VS 2008 property sheet Missed a required ';'-sorry about this. DOH! :| build/win32/vs9/glib.vsprops | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 269acbe7032cbc02b0c0edead054824ba111a5f1 Author: Matthias Clasen Date: Wed Oct 19 21:03:43 2011 -0400 Deprecate g_atexit This function was just not a good idea to begin with. Its documentation gives plenty of reason not to use it. glib/gutils.c | 3 +++ glib/gutils.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletions(-) commit 3569af4af10b2ae65d4d93bfb3de929e1d1e2308 Author: Cosimo Cecchi Date: Tue Oct 18 10:48:31 2011 -0400 desktop-app-info: annotate g_desktop_app_info_get_keywords() https://bugzilla.gnome.org/show_bug.cgi?id=662096 gio/gdesktopappinfo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)