[libgdata: 1/2] demos: Work around GoaObject not supporting g_autolist()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata: 1/2] demos: Work around GoaObject not supporting g_autolist()
- Date: Wed, 21 Aug 2019 07:15:35 +0000 (UTC)
commit 78a18333192511c0ceb9e90403feaf1291f283e6
Author: Philip Withnall <withnall endlessm com>
Date: Tue Jul 30 17:59:57 2019 +0100
demos: Work around GoaObject not supporting g_autolist()
Work around this
bug: https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/73,
which prevents `GoaObject` being used with `g_autolist()` if GOA was
compiled with an older version of `gdbus-codegen`.
Signed-off-by: Philip Withnall <withnall endlessm com>
Fixes: #32
demos/docs-property/docs-property.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/demos/docs-property/docs-property.c b/demos/docs-property/docs-property.c
index b1586141..d4b8f30f 100644
--- a/demos/docs-property/docs-property.c
+++ b/demos/docs-property/docs-property.c
@@ -42,12 +42,16 @@ static gboolean is_owner (GDataService *service, GDataEntry *entry);
static void test_dummy_properties (GDataDocumentsService *service, gboolean set, GCancellable *cancellable,
GError **error);
+/* FIXME: Work around https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/73 */
+typedef GoaObject AutoGoaObject;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(AutoGoaObject, g_object_unref)
+
gint
main (void)
{
g_autoptr(GDataDocumentsService) service = NULL;
g_autoptr(GError) error = NULL;
- g_autolist(GoaObject) accounts = NULL;
+ g_autolist(AutoGoaObject) accounts = NULL;
GList *l = NULL;
g_autoptr(GoaClient) client = NULL;
gint retval = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]