Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/oscar.c @ 21335:d4f95419be45
disapproval of revision 'b6ee8d925e8e7670de77e6283963fa151ea0ed77'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 16 Nov 2007 23:01:12 +0000 |
parents | a20ef7180680 |
children | 8ae227dca885 |
comparison
equal
deleted
inserted
replaced
21244:a20ef7180680 | 21335:d4f95419be45 |
---|---|
1452 _("Enter the 6 digit number from the digital display."), | 1452 _("Enter the 6 digit number from the digital display."), |
1453 FALSE, FALSE, NULL, | 1453 FALSE, FALSE, NULL, |
1454 _("_OK"), G_CALLBACK(purple_parse_auth_securid_request_yes_cb), | 1454 _("_OK"), G_CALLBACK(purple_parse_auth_securid_request_yes_cb), |
1455 _("_Cancel"), G_CALLBACK(purple_parse_auth_securid_request_no_cb), | 1455 _("_Cancel"), G_CALLBACK(purple_parse_auth_securid_request_no_cb), |
1456 account, NULL, NULL, | 1456 account, NULL, NULL, |
1457 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); | 1457 PURPLE_REQUEST_HINT_ACCOUNT, gc); |
1458 g_free(primary); | 1458 g_free(primary); |
1459 | 1459 |
1460 return 1; | 1460 return 1; |
1461 } | 1461 } |
1462 | 1462 |
2244 purple_request_input_with_hint(data->gc, NULL, _("Authorization Request Message:"), | 2244 purple_request_input_with_hint(data->gc, NULL, _("Authorization Request Message:"), |
2245 NULL, _("Please authorize me!"), TRUE, FALSE, NULL, | 2245 NULL, _("Please authorize me!"), TRUE, FALSE, NULL, |
2246 _("_OK"), G_CALLBACK(purple_auth_request), | 2246 _("_OK"), G_CALLBACK(purple_auth_request), |
2247 _("_Cancel"), G_CALLBACK(purple_auth_dontrequest), | 2247 _("_Cancel"), G_CALLBACK(purple_auth_dontrequest), |
2248 purple_connection_get_account(gc), name, NULL, | 2248 purple_connection_get_account(gc), name, NULL, |
2249 PURPLE_REQUEST_UI_HINT_BLIST, data); | 2249 PURPLE_REQUEST_HINT_BLIST, data); |
2250 } | 2250 } |
2251 | 2251 |
2252 | 2252 |
2253 static void | 2253 static void |
2254 purple_auth_sendrequest_menu(PurpleBlistNode *node, gpointer ignored) | 2254 purple_auth_sendrequest_menu(PurpleBlistNode *node, gpointer ignored) |
2293 purple_request_input_with_hint(data->gc, NULL, _("Authorization Denied Message:"), | 2293 purple_request_input_with_hint(data->gc, NULL, _("Authorization Denied Message:"), |
2294 NULL, _("No reason given."), TRUE, FALSE, NULL, | 2294 NULL, _("No reason given."), TRUE, FALSE, NULL, |
2295 _("_OK"), G_CALLBACK(purple_auth_dontgrant), | 2295 _("_OK"), G_CALLBACK(purple_auth_dontgrant), |
2296 _("_Cancel"), G_CALLBACK(oscar_free_name_data), | 2296 _("_Cancel"), G_CALLBACK(oscar_free_name_data), |
2297 purple_connection_get_account(data->gc), data->name, NULL, | 2297 purple_connection_get_account(data->gc), data->name, NULL, |
2298 PURPLE_REQUEST_UI_HINT_BLIST, data); | 2298 PURPLE_REQUEST_HINT_BLIST, data); |
2299 } | 2299 } |
2300 | 2300 |
2301 /* When someone sends you buddies */ | 2301 /* When someone sends you buddies */ |
2302 static void | 2302 static void |
2303 purple_icq_buddyadd(struct name_data *data) | 2303 purple_icq_buddyadd(struct name_data *data) |
2479 purple_request_action_with_hint(gc, NULL, message, | 2479 purple_request_action_with_hint(gc, NULL, message, |
2480 _("Do you want to add this buddy " | 2480 _("Do you want to add this buddy " |
2481 "to your buddy list?"), | 2481 "to your buddy list?"), |
2482 PURPLE_DEFAULT_ACTION_NONE, | 2482 PURPLE_DEFAULT_ACTION_NONE, |
2483 purple_connection_get_account(gc), data->name, NULL, | 2483 purple_connection_get_account(gc), data->name, NULL, |
2484 PURPLE_REQUEST_UI_HINT_BLIST, data, 2, | 2484 PURPLE_REQUEST_HINT_BLIST, data, 2, |
2485 _("_Add"), G_CALLBACK(purple_icq_buddyadd), | 2485 _("_Add"), G_CALLBACK(purple_icq_buddyadd), |
2486 _("_Decline"), G_CALLBACK(oscar_free_name_data)); | 2486 _("_Decline"), G_CALLBACK(oscar_free_name_data)); |
2487 g_free(message); | 2487 g_free(message); |
2488 } | 2488 } |
2489 g_strfreev(text); | 2489 g_strfreev(text); |
5234 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); | 5234 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); |
5235 | 5235 |
5236 purple_request_yes_no_with_hint(gc, NULL, _("Authorization Given"), dialog_msg, | 5236 purple_request_yes_no_with_hint(gc, NULL, _("Authorization Given"), dialog_msg, |
5237 PURPLE_DEFAULT_ACTION_NONE, | 5237 PURPLE_DEFAULT_ACTION_NONE, |
5238 purple_connection_get_account(gc), sn, NULL, | 5238 purple_connection_get_account(gc), sn, NULL, |
5239 PURPLE_REQUEST_UI_HINT_BLIST, data, | 5239 PURPLE_REQUEST_HINT_BLIST, data, |
5240 G_CALLBACK(purple_icq_buddyadd), | 5240 G_CALLBACK(purple_icq_buddyadd), |
5241 G_CALLBACK(oscar_free_name_data)); | 5241 G_CALLBACK(oscar_free_name_data)); |
5242 g_free(dialog_msg); | 5242 g_free(dialog_msg); |
5243 | 5243 |
5244 return 1; | 5244 return 1; |
5935 purple_request_input_with_hint(gc, title, _("Buddy Comment:"), NULL, | 5935 purple_request_input_with_hint(gc, title, _("Buddy Comment:"), NULL, |
5936 comment_utf8, TRUE, FALSE, NULL, | 5936 comment_utf8, TRUE, FALSE, NULL, |
5937 _("_OK"), G_CALLBACK(oscar_ssi_editcomment), | 5937 _("_OK"), G_CALLBACK(oscar_ssi_editcomment), |
5938 _("_Cancel"), G_CALLBACK(oscar_free_name_data), | 5938 _("_Cancel"), G_CALLBACK(oscar_free_name_data), |
5939 purple_connection_get_account(gc), data->name, NULL, | 5939 purple_connection_get_account(gc), data->name, NULL, |
5940 PURPLE_REQUEST_UI_HINT_BUDDY, data); | 5940 PURPLE_REQUEST_HINT_BUDDY, data); |
5941 g_free(title); | 5941 g_free(title); |
5942 | 5942 |
5943 g_free(comment); | 5943 g_free(comment); |
5944 g_free(comment_utf8); | 5944 g_free(comment_utf8); |
5945 } | 5945 } |
5986 _("Because this reveals your IP address, it " | 5986 _("Because this reveals your IP address, it " |
5987 "may be considered a security risk. Do you " | 5987 "may be considered a security risk. Do you " |
5988 "wish to continue?"), | 5988 "wish to continue?"), |
5989 0, | 5989 0, |
5990 purple_connection_get_account(gc), data->who, NULL, | 5990 purple_connection_get_account(gc), data->who, NULL, |
5991 PURPLE_REQUEST_UI_HINT_BUDDY, data, 2, | 5991 PURPLE_REQUEST_HINT_BUDDY, data, 2, |
5992 _("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb), | 5992 _("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb), |
5993 _("_Cancel"), G_CALLBACK(oscar_ask_directim_no_cb)); | 5993 _("_Cancel"), G_CALLBACK(oscar_ask_directim_no_cb)); |
5994 g_free(buf); | 5994 g_free(buf); |
5995 } | 5995 } |
5996 | 5996 |
6143 purple_request_fields_with_hint(gc, _("ICQ Privacy Options"), _("ICQ Privacy Options"), | 6143 purple_request_fields_with_hint(gc, _("ICQ Privacy Options"), _("ICQ Privacy Options"), |
6144 NULL, fields, | 6144 NULL, fields, |
6145 _("OK"), G_CALLBACK(oscar_icq_privacy_opts), | 6145 _("OK"), G_CALLBACK(oscar_icq_privacy_opts), |
6146 _("Cancel"), NULL, | 6146 _("Cancel"), NULL, |
6147 purple_connection_get_account(gc), NULL, NULL, | 6147 purple_connection_get_account(gc), NULL, NULL, |
6148 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); | 6148 PURPLE_REQUEST_HINT_ACCOUNT, gc); |
6149 } | 6149 } |
6150 | 6150 |
6151 static void oscar_format_screenname(PurpleConnection *gc, const char *nick) { | 6151 static void oscar_format_screenname(PurpleConnection *gc, const char *nick) { |
6152 OscarData *od = gc->proto_data; | 6152 OscarData *od = gc->proto_data; |
6153 if (!aim_sncmp(purple_account_get_username(purple_connection_get_account(gc)), nick)) { | 6153 if (!aim_sncmp(purple_account_get_username(purple_connection_get_account(gc)), nick)) { |
6216 purple_request_input_with_hint(gc, NULL, _("Change Address To:"), NULL, NULL, | 6216 purple_request_input_with_hint(gc, NULL, _("Change Address To:"), NULL, NULL, |
6217 FALSE, FALSE, NULL, | 6217 FALSE, FALSE, NULL, |
6218 _("_OK"), G_CALLBACK(oscar_change_email), | 6218 _("_OK"), G_CALLBACK(oscar_change_email), |
6219 _("_Cancel"), NULL, | 6219 _("_Cancel"), NULL, |
6220 purple_connection_get_account(gc), NULL, NULL, | 6220 purple_connection_get_account(gc), NULL, NULL, |
6221 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); | 6221 PURPLE_REQUEST_HINT_ACCOUNT, gc); |
6222 } | 6222 } |
6223 | 6223 |
6224 static void oscar_show_awaitingauth(PurplePluginAction *action) | 6224 static void oscar_show_awaitingauth(PurplePluginAction *action) |
6225 { | 6225 { |
6226 PurpleConnection *gc = (PurpleConnection *) action->context; | 6226 PurpleConnection *gc = (PurpleConnection *) action->context; |
6286 "searching for."), | 6286 "searching for."), |
6287 NULL, FALSE, FALSE, NULL, | 6287 NULL, FALSE, FALSE, NULL, |
6288 _("_Search"), G_CALLBACK(search_by_email_cb), | 6288 _("_Search"), G_CALLBACK(search_by_email_cb), |
6289 _("_Cancel"), NULL, | 6289 _("_Cancel"), NULL, |
6290 purple_connection_get_account(gc), NULL, NULL, | 6290 purple_connection_get_account(gc), NULL, NULL, |
6291 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); | 6291 PURPLE_REQUEST_HINT_ACCOUNT, gc); |
6292 } | 6292 } |
6293 | 6293 |
6294 static void oscar_show_set_info(PurplePluginAction *action) | 6294 static void oscar_show_set_info(PurplePluginAction *action) |
6295 { | 6295 { |
6296 PurpleConnection *gc = (PurpleConnection *) action->context; | 6296 PurpleConnection *gc = (PurpleConnection *) action->context; |