[librest/wip/teuf/gtask: 12/37] fixup! RestProxyCall: Use GTask



commit 95e816796b14a174a2367d6017890e63772cd4b5
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Wed Jun 15 17:29:31 2016 +0200

    fixup! RestProxyCall: Use GTask
    
    was: "OAuthProxy: Pass proper data to callbacks"

 rest/oauth-proxy.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rest/oauth-proxy.c b/rest/oauth-proxy.c
index 6c8cab8..968a6a9 100644
--- a/rest/oauth-proxy.c
+++ b/rest/oauth-proxy.c
@@ -344,7 +344,7 @@ request_token_cb (GObject      *source_object,
 
   oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call));
 
-  data->callback (source_object, result, user_data);
+  data->callback (source_object, result, data->user_data);
 
   g_slice_free (AuthData, data);
   g_object_unref (call);
@@ -461,7 +461,7 @@ access_token_cb (GObject      *source_object,
     oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call));
   /*}*/
 
-  data->callback (source_object, result, user_data);
+  data->callback (source_object, result, data->user_data);
 
   g_slice_free (AuthData, data);
   g_object_unref (call);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]