comparison 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
comparison
equal deleted inserted replaced
18828:f8b22b11a126 18829:7a594763c229
2544 g_free(aa->alias); 2544 g_free(aa->alias);
2545 g_free(aa); 2545 g_free(aa);
2546 } 2546 }
2547 2547
2548 static void * 2548 static void *
2549 pidgin_accounts_request_authorization(PurpleAccount *account, const char *remote_user, 2549 pidgin_accounts_request_authorization(PurpleAccount *account,
2550 const char *id, const char *alias, const char *message, gboolean on_list, 2550 const char *remote_user,
2551 GCallback auth_cb, GCallback deny_cb, void *user_data) 2551 const char *id,
2552 const char *alias,
2553 const char *message,
2554 gboolean on_list,
2555 PurpleAccountRequestAuthorizationCb auth_cb,
2556 PurpleAccountRequestAuthorizationCb deny_cb,
2557 void *user_data)
2552 { 2558 {
2553 char *buffer; 2559 char *buffer;
2554 PurpleConnection *gc; 2560 PurpleConnection *gc;
2555 GtkWidget *alert; 2561 GtkWidget *alert;
2556 2562
2572 (message != NULL ? message : "")); 2578 (message != NULL ? message : ""));
2573 2579
2574 2580
2575 if (!on_list) { 2581 if (!on_list) {
2576 struct auth_and_add *aa = g_new0(struct auth_and_add, 1); 2582 struct auth_and_add *aa = g_new0(struct auth_and_add, 1);
2577 aa->auth_cb = (PurpleAccountRequestAuthorizationCb)auth_cb; 2583 aa->auth_cb = auth_cb;
2578 aa->deny_cb = (PurpleAccountRequestAuthorizationCb)deny_cb; 2584 aa->deny_cb = deny_cb;
2579 aa->data = user_data; 2585 aa->data = user_data;
2580 aa->username = g_strdup(remote_user); 2586 aa->username = g_strdup(remote_user);
2581 aa->alias = g_strdup(alias); 2587 aa->alias = g_strdup(alias);
2582 aa->account = account; 2588 aa->account = account;
2583 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION, 2589 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION,