Mercurial > pidgin.yaz
diff pidgin/gtkaccount.c @ 18829:7a594763c229
Correct the types of the authorize_cb and deny_cb parameters of
PurpleAccountUiOps.request_authorize to be
PurpleAccountRequestAuthorizationCb rather than GCallback, and amend
Pidgin and Finch accordingly. Fixes #2437
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Fri, 10 Aug 2007 17:30:59 +0000 |
parents | 66df5d93cdf4 |
children | 8ce97365b418 e42b22d0f564 |
line wrap: on
line diff
--- a/pidgin/gtkaccount.c Tue Aug 07 09:47:39 2007 +0000 +++ b/pidgin/gtkaccount.c Fri Aug 10 17:30:59 2007 +0000 @@ -2546,9 +2546,15 @@ } static void * -pidgin_accounts_request_authorization(PurpleAccount *account, const char *remote_user, - const char *id, const char *alias, const char *message, gboolean on_list, - GCallback auth_cb, GCallback deny_cb, void *user_data) +pidgin_accounts_request_authorization(PurpleAccount *account, + const char *remote_user, + const char *id, + const char *alias, + const char *message, + gboolean on_list, + PurpleAccountRequestAuthorizationCb auth_cb, + PurpleAccountRequestAuthorizationCb deny_cb, + void *user_data) { char *buffer; PurpleConnection *gc; @@ -2574,8 +2580,8 @@ if (!on_list) { struct auth_and_add *aa = g_new0(struct auth_and_add, 1); - aa->auth_cb = (PurpleAccountRequestAuthorizationCb)auth_cb; - aa->deny_cb = (PurpleAccountRequestAuthorizationCb)deny_cb; + aa->auth_cb = auth_cb; + aa->deny_cb = deny_cb; aa->data = user_data; aa->username = g_strdup(remote_user); aa->alias = g_strdup(alias);