Mercurial > pidgin
comparison libpurple/protocols/oscar/oscar.c @ 19975:6a0d9fa477d4
propagate from branch 'im.pidgin.pidgin' (head 483b6435074838149d6e95b836d4a2d9263f265d)
to branch 'org.maemo.garage.pidgin.pidgin.dialog-transience' (head 656aa6cb789d7885b3a72600bf323c104d8ebfd8)
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Wed, 12 Sep 2007 19:11:38 +0000 |
parents | b199a9be3e95 0ed8a2a86a1b |
children | 591267f6f1d5 |
comparison
equal
deleted
inserted
replaced
19777:0633ecda7ed0 | 19975:6a0d9fa477d4 |
---|---|
1448 _("Enter the 6 digit number from the digital display."), | 1448 _("Enter the 6 digit number from the digital display."), |
1449 FALSE, FALSE, NULL, | 1449 FALSE, FALSE, NULL, |
1450 _("_OK"), G_CALLBACK(purple_parse_auth_securid_request_yes_cb), | 1450 _("_OK"), G_CALLBACK(purple_parse_auth_securid_request_yes_cb), |
1451 _("_Cancel"), G_CALLBACK(purple_parse_auth_securid_request_no_cb), | 1451 _("_Cancel"), G_CALLBACK(purple_parse_auth_securid_request_no_cb), |
1452 account, NULL, NULL, | 1452 account, NULL, NULL, |
1453 gc); | 1453 "account", gc); |
1454 g_free(primary); | 1454 g_free(primary); |
1455 | 1455 |
1456 return 1; | 1456 return 1; |
1457 } | 1457 } |
1458 | 1458 |
2223 purple_request_input(data->gc, NULL, _("Authorization Request Message:"), | 2223 purple_request_input(data->gc, NULL, _("Authorization Request Message:"), |
2224 NULL, _("Please authorize me!"), TRUE, FALSE, NULL, | 2224 NULL, _("Please authorize me!"), TRUE, FALSE, NULL, |
2225 _("_OK"), G_CALLBACK(purple_auth_request), | 2225 _("_OK"), G_CALLBACK(purple_auth_request), |
2226 _("_Cancel"), G_CALLBACK(purple_auth_dontrequest), | 2226 _("_Cancel"), G_CALLBACK(purple_auth_dontrequest), |
2227 purple_connection_get_account(gc), name, NULL, | 2227 purple_connection_get_account(gc), name, NULL, |
2228 data); | 2228 "blist", data); |
2229 } | 2229 } |
2230 | 2230 |
2231 | 2231 |
2232 static void | 2232 static void |
2233 purple_auth_sendrequest_menu(PurpleBlistNode *node, gpointer ignored) | 2233 purple_auth_sendrequest_menu(PurpleBlistNode *node, gpointer ignored) |
2272 purple_request_input(data->gc, NULL, _("Authorization Denied Message:"), | 2272 purple_request_input(data->gc, NULL, _("Authorization Denied Message:"), |
2273 NULL, _("No reason given."), TRUE, FALSE, NULL, | 2273 NULL, _("No reason given."), TRUE, FALSE, NULL, |
2274 _("_OK"), G_CALLBACK(purple_auth_dontgrant), | 2274 _("_OK"), G_CALLBACK(purple_auth_dontgrant), |
2275 _("_Cancel"), G_CALLBACK(oscar_free_name_data), | 2275 _("_Cancel"), G_CALLBACK(oscar_free_name_data), |
2276 purple_connection_get_account(data->gc), data->name, NULL, | 2276 purple_connection_get_account(data->gc), data->name, NULL, |
2277 data); | 2277 "blist", data); |
2278 } | 2278 } |
2279 | 2279 |
2280 /* When someone sends you buddies */ | 2280 /* When someone sends you buddies */ |
2281 static void | 2281 static void |
2282 purple_icq_buddyadd(struct name_data *data) | 2282 purple_icq_buddyadd(struct name_data *data) |
2458 purple_request_action(gc, NULL, message, | 2458 purple_request_action(gc, NULL, message, |
2459 _("Do you want to add this buddy " | 2459 _("Do you want to add this buddy " |
2460 "to your buddy list?"), | 2460 "to your buddy list?"), |
2461 PURPLE_DEFAULT_ACTION_NONE, | 2461 PURPLE_DEFAULT_ACTION_NONE, |
2462 purple_connection_get_account(gc), data->name, NULL, | 2462 purple_connection_get_account(gc), data->name, NULL, |
2463 data, 2, | 2463 "blist", data, 2, |
2464 _("_Add"), G_CALLBACK(purple_icq_buddyadd), | 2464 _("_Add"), G_CALLBACK(purple_icq_buddyadd), |
2465 _("_Decline"), G_CALLBACK(oscar_free_name_data)); | 2465 _("_Decline"), G_CALLBACK(oscar_free_name_data)); |
2466 g_free(message); | 2466 g_free(message); |
2467 } | 2467 } |
2468 g_strfreev(text); | 2468 g_strfreev(text); |
5168 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); | 5168 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); |
5169 | 5169 |
5170 purple_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg, | 5170 purple_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg, |
5171 PURPLE_DEFAULT_ACTION_NONE, | 5171 PURPLE_DEFAULT_ACTION_NONE, |
5172 purple_connection_get_account(gc), sn, NULL, | 5172 purple_connection_get_account(gc), sn, NULL, |
5173 data, | 5173 "blist", data, |
5174 G_CALLBACK(purple_icq_buddyadd), | 5174 G_CALLBACK(purple_icq_buddyadd), |
5175 G_CALLBACK(oscar_free_name_data)); | 5175 G_CALLBACK(oscar_free_name_data)); |
5176 g_free(dialog_msg); | 5176 g_free(dialog_msg); |
5177 | 5177 |
5178 return 1; | 5178 return 1; |
5867 purple_request_input(gc, title, _("Buddy Comment:"), NULL, | 5867 purple_request_input(gc, title, _("Buddy Comment:"), NULL, |
5868 comment_utf8, TRUE, FALSE, NULL, | 5868 comment_utf8, TRUE, FALSE, NULL, |
5869 _("_OK"), G_CALLBACK(oscar_ssi_editcomment), | 5869 _("_OK"), G_CALLBACK(oscar_ssi_editcomment), |
5870 _("_Cancel"), G_CALLBACK(oscar_free_name_data), | 5870 _("_Cancel"), G_CALLBACK(oscar_free_name_data), |
5871 purple_connection_get_account(gc), data->name, NULL, | 5871 purple_connection_get_account(gc), data->name, NULL, |
5872 data); | 5872 "buddy", data); |
5873 g_free(title); | 5873 g_free(title); |
5874 | 5874 |
5875 g_free(comment); | 5875 g_free(comment); |
5876 g_free(comment_utf8); | 5876 g_free(comment_utf8); |
5877 } | 5877 } |
5918 _("Because this reveals your IP address, it " | 5918 _("Because this reveals your IP address, it " |
5919 "may be considered a security risk. Do you " | 5919 "may be considered a security risk. Do you " |
5920 "wish to continue?"), | 5920 "wish to continue?"), |
5921 0, | 5921 0, |
5922 purple_connection_get_account(gc), data->who, NULL, | 5922 purple_connection_get_account(gc), data->who, NULL, |
5923 data, 2, | 5923 "buddy", data, 2, |
5924 _("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb), | 5924 _("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb), |
5925 _("_Cancel"), G_CALLBACK(oscar_ask_directim_no_cb)); | 5925 _("_Cancel"), G_CALLBACK(oscar_ask_directim_no_cb)); |
5926 g_free(buf); | 5926 g_free(buf); |
5927 } | 5927 } |
5928 | 5928 |
6075 purple_request_fields(gc, _("ICQ Privacy Options"), _("ICQ Privacy Options"), | 6075 purple_request_fields(gc, _("ICQ Privacy Options"), _("ICQ Privacy Options"), |
6076 NULL, fields, | 6076 NULL, fields, |
6077 _("OK"), G_CALLBACK(oscar_icq_privacy_opts), | 6077 _("OK"), G_CALLBACK(oscar_icq_privacy_opts), |
6078 _("Cancel"), NULL, | 6078 _("Cancel"), NULL, |
6079 purple_connection_get_account(gc), NULL, NULL, | 6079 purple_connection_get_account(gc), NULL, NULL, |
6080 gc); | 6080 "account", gc); |
6081 } | 6081 } |
6082 | 6082 |
6083 static void oscar_format_screenname(PurpleConnection *gc, const char *nick) { | 6083 static void oscar_format_screenname(PurpleConnection *gc, const char *nick) { |
6084 OscarData *od = gc->proto_data; | 6084 OscarData *od = gc->proto_data; |
6085 if (!aim_sncmp(purple_account_get_username(purple_connection_get_account(gc)), nick)) { | 6085 if (!aim_sncmp(purple_account_get_username(purple_connection_get_account(gc)), nick)) { |
6148 purple_request_input(gc, NULL, _("Change Address To:"), NULL, NULL, | 6148 purple_request_input(gc, NULL, _("Change Address To:"), NULL, NULL, |
6149 FALSE, FALSE, NULL, | 6149 FALSE, FALSE, NULL, |
6150 _("_OK"), G_CALLBACK(oscar_change_email), | 6150 _("_OK"), G_CALLBACK(oscar_change_email), |
6151 _("_Cancel"), NULL, | 6151 _("_Cancel"), NULL, |
6152 purple_connection_get_account(gc), NULL, NULL, | 6152 purple_connection_get_account(gc), NULL, NULL, |
6153 gc); | 6153 "account", gc); |
6154 } | 6154 } |
6155 | 6155 |
6156 static void oscar_show_awaitingauth(PurplePluginAction *action) | 6156 static void oscar_show_awaitingauth(PurplePluginAction *action) |
6157 { | 6157 { |
6158 PurpleConnection *gc = (PurpleConnection *) action->context; | 6158 PurpleConnection *gc = (PurpleConnection *) action->context; |
6218 "searching for."), | 6218 "searching for."), |
6219 NULL, FALSE, FALSE, NULL, | 6219 NULL, FALSE, FALSE, NULL, |
6220 _("_Search"), G_CALLBACK(search_by_email_cb), | 6220 _("_Search"), G_CALLBACK(search_by_email_cb), |
6221 _("_Cancel"), NULL, | 6221 _("_Cancel"), NULL, |
6222 purple_connection_get_account(gc), NULL, NULL, | 6222 purple_connection_get_account(gc), NULL, NULL, |
6223 gc); | 6223 "buddy", gc); |
6224 } | 6224 } |
6225 | 6225 |
6226 static void oscar_show_set_info(PurplePluginAction *action) | 6226 static void oscar_show_set_info(PurplePluginAction *action) |
6227 { | 6227 { |
6228 PurpleConnection *gc = (PurpleConnection *) action->context; | 6228 PurpleConnection *gc = (PurpleConnection *) action->context; |