commit 8e6c8842b44429fbba8cc4bb445532b314b07885 Author: Philip Withnall Date: Tue Dec 20 22:59:48 2011 +0000 core: Atomically update auth_tokens in GDataClientLoginAuthorizer If a (synchronous or asynchronous) authentication operation fails or is cancelled part-way through, we could have successfully authenticated against some GDataAuthorizationDomains but not others. In this situation, we now only update the set of domains we're authenticated against if _all_ domains are successfully authenticated against. While this may seem like it wastes the valid auth. tokens, it makes the API more consistent and won't really impact real-world usage. In the real world, clients are going to want to be authenticated against all of the domains they're interested in, or none of them. They most likely won't care about partial success of an authentication operation. gdata/gdata-client-login-authorizer.c | 161 ++++++++++++++++----------------- 1 files changed, 79 insertions(+), 82 deletions(-) commit fd7c94a176493e4d48f175d28bf9c6266b56da9c Author: Philip Withnall Date: Tue Dec 20 22:58:47 2011 +0000 tests: Set G_MESSAGES_DEBUG when running tests Recent versions of GLib will only display debug messages when the appropriate logging domains are set in G_MESSAGES_DEBUG. gdata/tests/common.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 488106059bd78c600313921c03927b711066725c Author: Philip Withnall Date: Tue Dec 20 21:55:31 2011 +0000 documents: Don't use a deprecated function in GDataDocumentsSpreadsheet Use resource IDs instead of document IDs. .../documents/gdata-documents-spreadsheet.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit b7faf9bfa883fe32d6a73aae55e833e126dde62f Author: Philip Withnall Date: Tue Dec 20 21:53:23 2011 +0000 core: Don't use deprecated GLib threading API if we have a recent GLib If we have GLib ≥ 2.31.0, use the new threading/mutex/condition variable API to avoid deprecated function warnings. Note that this doesn't bump our GLib dependency from 2.30.0; if a recent enough GLib is not available, libgdata should still compile with the old threading API. gdata/gdata-buffer.c | 61 ++++++++++- gdata/gdata-buffer.h | 5 + gdata/gdata-client-login-authorizer.c | 68 +++++++++++ gdata/gdata-download-stream.c | 103 +++++++++++++++++- gdata/gdata-oauth1-authorizer.c | 43 +++++++ gdata/gdata-service.c | 29 +++++- gdata/gdata-upload-stream.c | 200 ++++++++++++++++++++++++++++++++- gdata/tests/common.c | 2 + gdata/tests/memory.c | 2 + gdata/tests/perf.c | 2 + gdata/tests/streams.c | 37 ++++--- 11 files changed, 531 insertions(+), 21 deletions(-) commit bcced9de5f3fb427124848f61d06cd896a76aa88 Author: Žygimantas Beručka Date: Tue Dec 6 17:36:56 2011 +0200 Updated Lithuanian translation po/lt.po | 41 +++++++++++++++++++++++++---------------- 1 files changed, 25 insertions(+), 16 deletions(-) commit 1c5540bbf98f2b51d23a632dd72a4b2c606d08a7 Author: Philip Withnall Date: Thu Oct 27 08:54:03 2011 +0100 contacts: Add support for the “file as” property Add support for “file as” strings on contacts, specifying their sort order if they have non-Western-style names or names which are otherwise incorrectly sorted in the contact list. The following API has been added: • GDataContactsContact:file-as • gdata_contacts_contact_[get|set]_file_as() This includes basic test coverage of the new code. Helps: bgo#661033 docs/reference/gdata-sections.txt | 2 + gdata/gdata.symbols | 2 + gdata/services/contacts/gdata-contacts-contact.c | 70 +++++++++++++++++++++- gdata/services/contacts/gdata-contacts-contact.h | 5 +- gdata/tests/contacts.c | 20 ++++++- 5 files changed, 94 insertions(+), 5 deletions(-) commit 43934b019874eb6490f1df72d3d6dbb5fd034234 Author: Philip Withnall Date: Thu Oct 27 08:52:36 2011 +0100 contacts: Slightly relax a test condition Instead of requiring that a contact's creation date be at or after its last edit date, require that the last edit date be within 5 seconds after the contact's creation date. gdata/tests/contacts.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 95033d02d73a9d7b6e95d4e201c7f53c60b048af Author: Philip Withnall Date: Sun Oct 23 11:24:40 2011 +0100 core: Use GHmac instead of HMAC from liboauth This moves us one step closer to dropping the liboauth dependency. This bumps our GLib dependency to 2.30.0. configure.ac | 2 +- gdata/gdata-oauth1-authorizer.c | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) commit 2c7d5579bb82658a2df04dd1e209d9d73d5195ee Author: Philip Withnall Date: Thu Oct 20 17:19:25 2011 +0100 Bug 662290 — Can't update contact that has no full name Treat the empty string as if it were NULL for GDataGDName:full-name. Add a test case which does so too. This should fix round-trips to Google for contacts which have no full name set. Closes: bgo#662290 gdata/gd/gdata-gd-name.c | 12 +++++++++++- gdata/tests/general.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletions(-) commit ec55e6507cdf650a5e071e416fd95192da84a2a6 Author: Philip Withnall Date: Tue Oct 11 16:42:48 2011 +0100 docs: Add a section on privacy considerations to the documentation This covers the work on non-pageable memory for sensitive details, plus the work to redact sensitive details from log output. Closes: bgo#656783 docs/reference/gdata-overview.xml | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) commit a5a772a00526b0830c01254d0ba24305d46b1fa5 Author: Philip Withnall Date: Tue Oct 11 16:40:21 2011 +0100 core: Ensure passwords and auth. tokens are stored in non-pageable memory If we're compiled with --enable-gnome, we now allocate passwords and auth. tokens in non-pageable memory where possible. Where not possible (due to API constraints imposed by ourselves or libsoup) we ensure that the details are zeroed out before being freed. This is all with the aim of never having passwords or auth. tokens hit disk or be leaked in other ways. It hasn't been formally reviewed or certified, and there are probably cases I've missed (which are bugs). This adds an optional dependency on libgnome-keyring when compiled with --enable-gnome. Helps: bgo#656783 README | 1 + configure.ac | 7 +-- gdata/gdata-client-login-authorizer.c | 48 ++++++++++++++------ gdata/gdata-oauth1-authorizer.c | 53 ++++++++++++++++++--- gdata/gdata-private.h | 7 +++ gdata/gdata-service.c | 81 +++++++++++++++++++++++++++++++++ 6 files changed, 170 insertions(+), 27 deletions(-) commit 41129e8ac50e22dddbc5eaf26604e74785f81810 Author: Philip Withnall Date: Mon Oct 10 23:17:35 2011 +0100 Bug 656973 — Add an example of starring a document Add an example of starring a document to the GDataDocumentsService documentation. This adds the following new API (for convenience of referring to URIs): • GDATA_CATEGORY_SCHEMA_LABELS • GDATA_CATEGORY_SCHEMA_LABELS_STARRED Closes: bgo#656973 docs/reference/gdata-sections.txt | 2 + gdata/atom/gdata-category.h | 20 ++++++++++ gdata/services/documents/gdata-documents-service.c | 40 ++++++++++++++++++++ 3 files changed, 62 insertions(+), 0 deletions(-) commit 1e16460f0df6d67c55569c8b2a39293aa32e0f5e Author: Philip Withnall Date: Mon Oct 10 22:27:38 2011 +0100 Bug 659148 — Add search-term query example to documentation Closes: bgo#659148 gdata/services/youtube/gdata-youtube-service.c | 39 ++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) commit 0360fd97b2af0ba24a9ef54ff9b5a941c293a21b Author: Philip Withnall Date: Mon Oct 10 22:07:39 2011 +0100 Bug 660174 — Deprecate SWF export of presentations SWF export has been deprecated in the protocol and will be disabled, leading to HTTP 400 errors. See: http://googleappsdeveloper.blogspot.com/2011/09/deprecating-swf-exports-of.html Closes: bgo#660174 .../documents/gdata-documents-presentation.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 7b4bf874d32e2db7832f722c68b89642ad9e1367 Author: Philip Withnall Date: Mon Oct 10 22:07:24 2011 +0100 youtube: Fix a typo in a documentation comment gdata/services/youtube/gdata-youtube-query.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit efb1e2b8ae8328c82d86ce9fb4c3c00f3ddc6846 Author: Philip Withnall Date: Mon Oct 10 21:57:58 2011 +0100 Bug 658865 — Add support for the license query parameter Add a GDataYouTubeQuery:license parameter, plus getter and setter, and some tests. Closes: bgo#658865 docs/reference/gdata-sections.txt | 4 ++ gdata/gdata.symbols | 2 + gdata/services/youtube/gdata-youtube-query.c | 74 +++++++++++++++++++++++++- gdata/services/youtube/gdata-youtube-query.h | 22 ++++++++ gdata/tests/youtube.c | 8 ++- 5 files changed, 107 insertions(+), 3 deletions(-) commit fd2d8a5f14aece4b28b07d2bffeb766d77c972aa Author: Philip Withnall Date: Mon Oct 10 09:38:19 2011 +0100 core: Filter sensitive details out of debug log output Add a new log level, GDATA_LOG_FULL_UNREDACTED = 4, and redact usernames, passwords and auth. tokens from all log levels below it. Thus, taking a debug log with LIBGDATA_DEBUG=3 will no longer inadvertently reveal the user's password. Helps: bgo#656783 README | 5 ++- gdata/gdata-private.h | 8 +++- gdata/gdata-service.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++- gdata/tests/common.c | 2 +- 4 files changed, 105 insertions(+), 6 deletions(-) commit 6e1ced020c67c9711bb3af1a8a8669b34cfedf5a Author: Philip Withnall Date: Sun Oct 9 22:20:22 2011 +0100 Bug 656972 — Tidy up document IDs Tidy up the mess of IDs available for Google Docs documents. Previously, they could be identified by any one of their: entry ID, resource ID and document ID. Document IDs are now deprecated and replaced by resource IDs; and both are now considered as internal, and thus entry IDs should be used everywhere by client code in preference. Added API: • GDataDocumentsEntry:resource-id and getter Deprecated (but not removed) API: • GDataDocumentsEntry:document-id and getter Closes: bgo#656972 docs/reference/gdata-sections.txt | 1 + gdata/gdata.symbols | 1 + gdata/services/documents/gdata-documents-entry.c | 134 +++++++++++++------- gdata/services/documents/gdata-documents-entry.h | 6 +- gdata/services/documents/gdata-documents-folder.c | 17 --- .../documents/gdata-documents-presentation.c | 17 --- gdata/services/documents/gdata-documents-service.c | 29 +---- .../documents/gdata-documents-spreadsheet.c | 17 --- gdata/services/documents/gdata-documents-text.c | 17 --- gdata/tests/documents.c | 2 +- 10 files changed, 101 insertions(+), 140 deletions(-) commit d8904f6c5b0e830df10157906ebfe7c612a18468 Author: Philip Withnall Date: Sun Oct 9 22:02:54 2011 +0100 build: Add a LIBGDATA_DISABLE_DEPRECATED build flag This only affects installed header files, to make it easier for clients to ensure they're not using deprecated libgdata API. (If, for some reason, G_GNUC_DEPRECATED_FOR doesn't cut it for them.) It doesn't affect the compilation of libgdata. HACKING | 21 +++++++++++++++++++++ Makefile.am | 1 + README | 6 ++++++ docs/reference/Makefile.am | 2 +- gdata/tests/Makefile.am | 1 + 5 files changed, 30 insertions(+), 1 deletions(-) commit c8ddd2eb7860aca9dc9764f99854bec79de8da1c Author: Philip Withnall Date: Sun Oct 9 22:01:03 2011 +0100 demos: Port scrapbook demo to GtkGrid from GtkTable This fixes compilation against GTK+ with deprecations disabled. This also requires enforcing a minimum version of GTK+ of 2.91.2, which should be fine. configure.ac | 3 ++- demos/scrapbook/scrapbook.c | 28 ++++++++++++++++------------ demos/scrapbook/scrapbook.h | 2 +- 3 files changed, 19 insertions(+), 14 deletions(-) commit d94fd8402a0e9dbadb2b161e3ff90530ed5cc5b3 Author: Nguyễn Thái Ngọc Duy Date: Sun Oct 2 11:59:57 2011 +1100 Added Vietnamese translation po/LINGUAS | 1 + po/vi.po | 476 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 477 insertions(+), 0 deletions(-) commit e1ab283e0a347bea06398953f9ad6eeba4e891c5 Author: Holger Berndt Date: Sun Sep 25 02:24:03 2011 +0200 Add version check preprocessor macros https://bugzilla.gnome.org/show_bug.cgi?id=660038 Makefile.am | 6 ++- configure.ac | 1 + docs/reference/gdata-docs.xml | 1 + docs/reference/gdata-sections.txt | 9 ++++ gdata/gdata-version.h.in | 80 +++++++++++++++++++++++++++++++++++++ gdata/gdata.h | 1 + 6 files changed, 96 insertions(+), 2 deletions(-) commit ae0a5b82645767367616ce21999bafe7722f4530 Author: YunQiang Su Date: Wed Sep 28 00:47:03 2011 +0800 update zh_CN translation po/zh_CN.po | 358 ++++++++++++++++++++++++++++++++--------------------------- 1 files changed, 196 insertions(+), 162 deletions(-) commit cc5dff24c3bc15822a337438760fbd17c39407cb Author: Tommi Vainikainen Date: Fri Sep 23 10:44:06 2011 +0300 Updated Finnish translation po/fi.po | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) commit 4725e9de3c95ae4043f49d437c5ea94c9698ef56 Author: Manoj Kumar Giri Date: Fri Sep 23 11:03:30 2011 +0530 Updated Oriya Translation po/or.po | 393 +++++++++++++++++++++++++++++++++++--------------------------- 1 files changed, 222 insertions(+), 171 deletions(-) commit 785b8168baa37a2be3e2be89cc752be983e0e10a Author: Nilamdyuti Goswami Date: Thu Sep 22 12:07:38 2011 +0200 Update Assamese translation po/as.po | 408 ++++++++++++++++++++++++++++++++++---------------------------- 1 files changed, 222 insertions(+), 186 deletions(-) commit 5481c5e0e02fbc9927c30d8226dfb4915515dd33 Author: Inaki Larranaga Murgoitio Date: Wed Sep 21 17:24:21 2011 +0200 Updated Basque language po/eu.po | 380 ++++++++++++++++++++++++++++++++++---------------------------- 1 files changed, 209 insertions(+), 171 deletions(-) commit be3c7cbcba4072ca537b7264a63c3eb56f003e60 Author: Gabor Kelemen Date: Wed Sep 21 02:34:43 2011 +0200 Updated Hungarian translation po/hu.po | 371 ++++++++++++++++++++++++++++++++++---------------------------- 1 files changed, 205 insertions(+), 166 deletions(-) commit 69f533b6feb74712d65365d2f63568f0f729e43e Author: Aputsiaq Janussen Date: Sat Sep 17 18:16:40 2011 +0200 Updated Danish translation po/da.po | 361 ++++++++++++++++++++++++++++++++++---------------------------- 1 files changed, 197 insertions(+), 164 deletions(-) commit d5c3473e3879f67e89ee00de4f08ebf58b74426d Author: Jiro Matsuzawa Date: Sat Sep 17 11:36:20 2011 +0900 Updated Japanese translation po/ja.po | 449 +++++++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 287 insertions(+), 162 deletions(-) commit 558e39c4d1f6631a9db7095112378f7debc462af Author: Мирослав Николић Date: Sat Sep 17 00:06:09 2011 +0200 Updated Serbian translation po/sr.po | 115 ++++++++++++++++++++++++++++++++----------------------- po/sr@latin.po | 115 ++++++++++++++++++++++++++++++++----------------------- 2 files changed, 134 insertions(+), 96 deletions(-) commit ad9d5a6fdf3444a0a2983da0cf8e3da5441d0b00 Author: Claudio Arseni Date: Thu Sep 15 01:02:15 2011 +0200 l10n: Updated Italian translation po/it.po | 378 ++++++++++++++++++++++++++++++++++---------------------------- 1 files changed, 206 insertions(+), 172 deletions(-) commit b21572fce758f2d8d876bb22d9241f80c72af2c8