comparison libpurple/protocols/yahoo/yahoo.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
1031 purple_request_input_with_hint(add_req->gc, NULL, _("Authorization denied message:"), 1031 purple_request_input_with_hint(add_req->gc, NULL, _("Authorization denied message:"),
1032 NULL, _("No reason given."), TRUE, FALSE, NULL, 1032 NULL, _("No reason given."), TRUE, FALSE, NULL,
1033 _("OK"), G_CALLBACK(yahoo_buddy_add_deny_cb), 1033 _("OK"), G_CALLBACK(yahoo_buddy_add_deny_cb),
1034 _("Cancel"), G_CALLBACK(yahoo_buddy_add_deny_noreason_cb), 1034 _("Cancel"), G_CALLBACK(yahoo_buddy_add_deny_noreason_cb),
1035 purple_connection_get_account(add_req->gc), add_req->who, NULL, 1035 purple_connection_get_account(add_req->gc), add_req->who, NULL,
1036 PURPLE_REQUEST_UI_HINT_BLIST, add_req); 1036 PURPLE_REQUEST_HINT_BLIST, add_req);
1037 } 1037 }
1038 1038
1039 static void yahoo_buddy_denied_our_add(PurpleConnection *gc, const char *who, const char *reason) 1039 static void yahoo_buddy_denied_our_add(PurpleConnection *gc, const char *who, const char *reason)
1040 { 1040 {
1041 char *notify_msg; 1041 char *notify_msg;
2065 g_snprintf(buf, sizeof(buf), _("You have tried to ignore %s, but the " 2065 g_snprintf(buf, sizeof(buf), _("You have tried to ignore %s, but the "
2066 "user is on your buddy list. Clicking \"Yes\" " 2066 "user is on your buddy list. Clicking \"Yes\" "
2067 "will remove and ignore the buddy."), who); 2067 "will remove and ignore the buddy."), who);
2068 purple_request_yes_no_with_hint(gc, NULL, _("Ignore buddy?"), buf, 0, 2068 purple_request_yes_no_with_hint(gc, NULL, _("Ignore buddy?"), buf, 0,
2069 gc->account, who, NULL, 2069 gc->account, who, NULL,
2070 PURPLE_REQUEST_UI_HINT_BLIST, b, 2070 PURPLE_REQUEST_HINT_BLIST, b,
2071 G_CALLBACK(ignore_buddy), 2071 G_CALLBACK(ignore_buddy),
2072 G_CALLBACK(keep_buddy)); 2072 G_CALLBACK(keep_buddy));
2073 break; 2073 break;
2074 case 2: 2074 case 2:
2075 case 3: 2075 case 3:
3497 purple_request_input_with_hint(gc, NULL, _("Activate which ID?"), NULL, 3497 purple_request_input_with_hint(gc, NULL, _("Activate which ID?"), NULL,
3498 purple_connection_get_display_name(gc), FALSE, FALSE, NULL, 3498 purple_connection_get_display_name(gc), FALSE, FALSE, NULL,
3499 _("OK"), G_CALLBACK(yahoo_act_id), 3499 _("OK"), G_CALLBACK(yahoo_act_id),
3500 _("Cancel"), NULL, 3500 _("Cancel"), NULL,
3501 purple_connection_get_account(gc), NULL, NULL, 3501 purple_connection_get_account(gc), NULL, NULL,
3502 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); 3502 PURPLE_REQUEST_HINT_ACCOUNT, gc);
3503 } 3503 }
3504 3504
3505 static void yahoo_show_chat_goto(PurplePluginAction *action) 3505 static void yahoo_show_chat_goto(PurplePluginAction *action)
3506 { 3506 {
3507 PurpleConnection *gc = (PurpleConnection *) action->context; 3507 PurpleConnection *gc = (PurpleConnection *) action->context;
3508 purple_request_input_with_hint(gc, NULL, _("Join who in chat?"), NULL, 3508 purple_request_input_with_hint(gc, NULL, _("Join who in chat?"), NULL,
3509 "", FALSE, FALSE, NULL, 3509 "", FALSE, FALSE, NULL,
3510 _("OK"), G_CALLBACK(yahoo_chat_goto), 3510 _("OK"), G_CALLBACK(yahoo_chat_goto),
3511 _("Cancel"), NULL, 3511 _("Cancel"), NULL,
3512 purple_connection_get_account(gc), NULL, NULL, 3512 purple_connection_get_account(gc), NULL, NULL,
3513 PURPLE_REQUEST_UI_HINT_CONV, gc); 3513 PURPLE_REQUEST_HINT_CONV, gc);
3514 } 3514 }
3515 3515
3516 static GList *yahoo_actions(PurplePlugin *plugin, gpointer context) { 3516 static GList *yahoo_actions(PurplePlugin *plugin, gpointer context) {
3517 GList *m = NULL; 3517 GList *m = NULL;
3518 PurplePluginAction *act; 3518 PurplePluginAction *act;