Mercurial > pidgin
comparison libpurple/protocols/oscar/oscar.c @ 19882:ee7d92af97f7
Added hints to oscar oscar.c
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Sun, 12 Aug 2007 20:13:34 +0000 |
parents | b28caf7dbe4a |
children | 0ed8a2a86a1b |
comparison
equal
deleted
inserted
replaced
19881:ddee7883d9fa | 19882:ee7d92af97f7 |
---|---|
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 |
2240 purple_request_input(data->gc, NULL, _("Authorization Request Message:"), | 2240 purple_request_input(data->gc, NULL, _("Authorization Request Message:"), |
2241 NULL, _("Please authorize me!"), TRUE, FALSE, NULL, | 2241 NULL, _("Please authorize me!"), TRUE, FALSE, NULL, |
2242 _("_OK"), G_CALLBACK(purple_auth_request), | 2242 _("_OK"), G_CALLBACK(purple_auth_request), |
2243 _("_Cancel"), G_CALLBACK(purple_auth_dontrequest), | 2243 _("_Cancel"), G_CALLBACK(purple_auth_dontrequest), |
2244 purple_connection_get_account(gc), name, NULL, | 2244 purple_connection_get_account(gc), name, NULL, |
2245 data); | 2245 "blist", data); |
2246 } | 2246 } |
2247 | 2247 |
2248 | 2248 |
2249 static void | 2249 static void |
2250 purple_auth_sendrequest_menu(PurpleBlistNode *node, gpointer ignored) | 2250 purple_auth_sendrequest_menu(PurpleBlistNode *node, gpointer ignored) |
2287 purple_request_input(data->gc, NULL, _("Authorization Denied Message:"), | 2287 purple_request_input(data->gc, NULL, _("Authorization Denied Message:"), |
2288 NULL, _("No reason given."), TRUE, FALSE, NULL, | 2288 NULL, _("No reason given."), TRUE, FALSE, NULL, |
2289 _("_OK"), G_CALLBACK(purple_auth_dontgrant), | 2289 _("_OK"), G_CALLBACK(purple_auth_dontgrant), |
2290 _("_Cancel"), G_CALLBACK(oscar_free_name_data), | 2290 _("_Cancel"), G_CALLBACK(oscar_free_name_data), |
2291 purple_connection_get_account(data->gc), data->name, NULL, | 2291 purple_connection_get_account(data->gc), data->name, NULL, |
2292 data); | 2292 "blist", data); |
2293 } | 2293 } |
2294 | 2294 |
2295 /* When someone sends you buddies */ | 2295 /* When someone sends you buddies */ |
2296 static void | 2296 static void |
2297 purple_icq_buddyadd(struct name_data *data) | 2297 purple_icq_buddyadd(struct name_data *data) |
2473 purple_request_action(gc, NULL, message, | 2473 purple_request_action(gc, NULL, message, |
2474 _("Do you want to add this buddy " | 2474 _("Do you want to add this buddy " |
2475 "to your buddy list?"), | 2475 "to your buddy list?"), |
2476 PURPLE_DEFAULT_ACTION_NONE, | 2476 PURPLE_DEFAULT_ACTION_NONE, |
2477 purple_connection_get_account(gc), data->name, NULL, | 2477 purple_connection_get_account(gc), data->name, NULL, |
2478 data, 2, | 2478 "blist", data, 2, |
2479 _("_Add"), G_CALLBACK(purple_icq_buddyadd), | 2479 _("_Add"), G_CALLBACK(purple_icq_buddyadd), |
2480 _("_Decline"), G_CALLBACK(oscar_free_name_data)); | 2480 _("_Decline"), G_CALLBACK(oscar_free_name_data)); |
2481 g_free(message); | 2481 g_free(message); |
2482 } | 2482 } |
2483 g_strfreev(text); | 2483 g_strfreev(text); |
5130 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); | 5130 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); |
5131 | 5131 |
5132 purple_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg, | 5132 purple_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg, |
5133 PURPLE_DEFAULT_ACTION_NONE, | 5133 PURPLE_DEFAULT_ACTION_NONE, |
5134 purple_connection_get_account(gc), sn, NULL, | 5134 purple_connection_get_account(gc), sn, NULL, |
5135 data, | 5135 "blist", data, |
5136 G_CALLBACK(purple_icq_buddyadd), | 5136 G_CALLBACK(purple_icq_buddyadd), |
5137 G_CALLBACK(oscar_free_name_data)); | 5137 G_CALLBACK(oscar_free_name_data)); |
5138 g_free(dialog_msg); | 5138 g_free(dialog_msg); |
5139 | 5139 |
5140 return 1; | 5140 return 1; |
5829 purple_request_input(gc, title, _("Buddy Comment:"), NULL, | 5829 purple_request_input(gc, title, _("Buddy Comment:"), NULL, |
5830 comment_utf8, TRUE, FALSE, NULL, | 5830 comment_utf8, TRUE, FALSE, NULL, |
5831 _("_OK"), G_CALLBACK(oscar_ssi_editcomment), | 5831 _("_OK"), G_CALLBACK(oscar_ssi_editcomment), |
5832 _("_Cancel"), G_CALLBACK(oscar_free_name_data), | 5832 _("_Cancel"), G_CALLBACK(oscar_free_name_data), |
5833 purple_connection_get_account(gc), data->name, NULL, | 5833 purple_connection_get_account(gc), data->name, NULL, |
5834 data); | 5834 "buddy", data); |
5835 g_free(title); | 5835 g_free(title); |
5836 | 5836 |
5837 g_free(comment); | 5837 g_free(comment); |
5838 g_free(comment_utf8); | 5838 g_free(comment_utf8); |
5839 } | 5839 } |
5880 _("Because this reveals your IP address, it " | 5880 _("Because this reveals your IP address, it " |
5881 "may be considered a security risk. Do you " | 5881 "may be considered a security risk. Do you " |
5882 "wish to continue?"), | 5882 "wish to continue?"), |
5883 0, | 5883 0, |
5884 purple_connection_get_account(gc), data->who, NULL, | 5884 purple_connection_get_account(gc), data->who, NULL, |
5885 data, 2, | 5885 "buddy", data, 2, |
5886 _("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb), | 5886 _("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb), |
5887 _("_Cancel"), G_CALLBACK(oscar_ask_directim_no_cb)); | 5887 _("_Cancel"), G_CALLBACK(oscar_ask_directim_no_cb)); |
5888 g_free(buf); | 5888 g_free(buf); |
5889 } | 5889 } |
5890 | 5890 |
6037 purple_request_fields(gc, _("ICQ Privacy Options"), _("ICQ Privacy Options"), | 6037 purple_request_fields(gc, _("ICQ Privacy Options"), _("ICQ Privacy Options"), |
6038 NULL, fields, | 6038 NULL, fields, |
6039 _("OK"), G_CALLBACK(oscar_icq_privacy_opts), | 6039 _("OK"), G_CALLBACK(oscar_icq_privacy_opts), |
6040 _("Cancel"), NULL, | 6040 _("Cancel"), NULL, |
6041 purple_connection_get_account(gc), NULL, NULL, | 6041 purple_connection_get_account(gc), NULL, NULL, |
6042 gc); | 6042 "account", gc); |
6043 } | 6043 } |
6044 | 6044 |
6045 static void oscar_format_screenname(PurpleConnection *gc, const char *nick) { | 6045 static void oscar_format_screenname(PurpleConnection *gc, const char *nick) { |
6046 OscarData *od = gc->proto_data; | 6046 OscarData *od = gc->proto_data; |
6047 if (!aim_sncmp(purple_account_get_username(purple_connection_get_account(gc)), nick)) { | 6047 if (!aim_sncmp(purple_account_get_username(purple_connection_get_account(gc)), nick)) { |
6110 purple_request_input(gc, NULL, _("Change Address To:"), NULL, NULL, | 6110 purple_request_input(gc, NULL, _("Change Address To:"), NULL, NULL, |
6111 FALSE, FALSE, NULL, | 6111 FALSE, FALSE, NULL, |
6112 _("_OK"), G_CALLBACK(oscar_change_email), | 6112 _("_OK"), G_CALLBACK(oscar_change_email), |
6113 _("_Cancel"), NULL, | 6113 _("_Cancel"), NULL, |
6114 purple_connection_get_account(gc), NULL, NULL, | 6114 purple_connection_get_account(gc), NULL, NULL, |
6115 gc); | 6115 "account", gc); |
6116 } | 6116 } |
6117 | 6117 |
6118 static void oscar_show_awaitingauth(PurplePluginAction *action) | 6118 static void oscar_show_awaitingauth(PurplePluginAction *action) |
6119 { | 6119 { |
6120 PurpleConnection *gc = (PurpleConnection *) action->context; | 6120 PurpleConnection *gc = (PurpleConnection *) action->context; |
6180 "searching for."), | 6180 "searching for."), |
6181 NULL, FALSE, FALSE, NULL, | 6181 NULL, FALSE, FALSE, NULL, |
6182 _("_Search"), G_CALLBACK(search_by_email_cb), | 6182 _("_Search"), G_CALLBACK(search_by_email_cb), |
6183 _("_Cancel"), NULL, | 6183 _("_Cancel"), NULL, |
6184 purple_connection_get_account(gc), NULL, NULL, | 6184 purple_connection_get_account(gc), NULL, NULL, |
6185 gc); | 6185 "buddy", gc); |
6186 } | 6186 } |
6187 | 6187 |
6188 static void oscar_show_set_info(PurplePluginAction *action) | 6188 static void oscar_show_set_info(PurplePluginAction *action) |
6189 { | 6189 { |
6190 PurpleConnection *gc = (PurpleConnection *) action->context; | 6190 PurpleConnection *gc = (PurpleConnection *) action->context; |