comparison finch/gntaccount.c @ 19239:829b00936eef

propagate from branch 'im.pidgin.pidgin' (head ee3cab184ee92cf36b4f36013402605653820416) to branch 'im.pidgin.soc.2007.msimprpl' (head 9bcb047516948fbfd4148f735e07e6ea2d96e164)
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Mon, 13 Aug 2007 03:58:49 +0000
parents 7a594763c229
children 74f7d5e4a605
comparison
equal deleted inserted replaced
18915:bfc52862d864 19239:829b00936eef
910 { 910 {
911 aa->deny_cb(aa->data); 911 aa->deny_cb(aa->data);
912 } 912 }
913 913
914 static void * 914 static void *
915 finch_request_authorize(PurpleAccount *account, const char *remote_user, 915 finch_request_authorize(PurpleAccount *account,
916 const char *id, const char *alias, const char *message, gboolean on_list, 916 const char *remote_user,
917 GCallback auth_cb, GCallback deny_cb, void *user_data) 917 const char *id,
918 const char *alias,
919 const char *message,
920 gboolean on_list,
921 PurpleAccountRequestAuthorizationCb auth_cb,
922 PurpleAccountRequestAuthorizationCb deny_cb,
923 void *user_data)
918 { 924 {
919 char *buffer; 925 char *buffer;
920 PurpleConnection *gc; 926 PurpleConnection *gc;
921 void *uihandle; 927 void *uihandle;
922 928
939 if (!on_list) { 945 if (!on_list) {
940 GntWidget *widget; 946 GntWidget *widget;
941 GList *iter; 947 GList *iter;
942 auth_and_add *aa = g_new(auth_and_add, 1); 948 auth_and_add *aa = g_new(auth_and_add, 1);
943 949
944 aa->auth_cb = (PurpleAccountRequestAuthorizationCb)auth_cb; 950 aa->auth_cb = auth_cb;
945 aa->deny_cb = (PurpleAccountRequestAuthorizationCb)deny_cb; 951 aa->deny_cb = deny_cb;
946 aa->data = user_data; 952 aa->data = user_data;
947 aa->username = g_strdup(remote_user); 953 aa->username = g_strdup(remote_user);
948 aa->alias = g_strdup(alias); 954 aa->alias = g_strdup(alias);
949 aa->account = account; 955 aa->account = account;
950 956