From df1ef92309b73670a06b4d2e52e4248be5b887f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Corentin=20No=C3=ABl?= <corentin@elementary.io>
Date: Mon, 10 Sep 2018 10:58:11 +0200
Subject: [PATCH] Update to latest libsignon-glib changes

---
 src/mcp-account-manager-accounts-sso.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/mcp-account-manager-accounts-sso.c b/src/mcp-account-manager-accounts-sso.c
index eea1b11..5943e59 100644
--- a/src/mcp-account-manager-accounts-sso.c
+++ b/src/mcp-account-manager-accounts-sso.c
@@ -29,7 +29,7 @@
 #include <libaccounts-glib/ag-auth-data.h>
 #include <libaccounts-glib/ag-provider.h>
 
-#include <libsignon-glib/signon-identity.h>
+#include <libsignon-glib/signon-glib.h>
 
 #include <string.h>
 #include <ctype.h>
@@ -308,12 +308,14 @@ typedef struct
 } AccountCreateData;
 
 static void
-_account_created_signon_cb(SignonIdentity *signon,
-    const SignonIdentityInfo *info,
-    const GError *error,
+_account_created_signon_cb (GObject *source_object,
+    GAsyncResult *res,
     gpointer user_data)
 {
+  SignonIdentity *signon = (SignonIdentity *)source_object;
   AccountCreateData *data = (AccountCreateData*) user_data;
+  GError *error = NULL;
+  SignonIdentityInfo * info = signon_identity_query_info_finish (signon, res, &error);
   gchar *username = g_strdup (signon_identity_info_get_username (info));
 
   g_debug("Accounts SSO: got account signon info response");
@@ -421,7 +423,7 @@ create_account(AgAccountService *service,
           data->self = self;
 
           DEBUG("Accounts SSO: querying account info from signon");
-          signon_identity_query_info(signon, _account_created_signon_cb, data);
+          signon_identity_query_info(signon, NULL, _account_created_signon_cb, data);
           return;
         }
       else
-- 
2.18.1

