Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo.c @ 21099:51cf02dbdb0e
disapproval of revision 'c484d979c4fda4433a9633ff8b69bd8a395c9479'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 16 Nov 2007 23:30:03 +0000 |
parents | cab348e39751 |
children | fcb848b2d669 |
comparison
equal
deleted
inserted
replaced
21095:cab348e39751 | 21099:51cf02dbdb0e |
---|---|
1026 } | 1026 } |
1027 | 1027 |
1028 static void | 1028 static void |
1029 yahoo_buddy_add_deny_reason_cb(gpointer data) { | 1029 yahoo_buddy_add_deny_reason_cb(gpointer data) { |
1030 struct yahoo_add_request *add_req = data; | 1030 struct yahoo_add_request *add_req = data; |
1031 purple_request_input_with_hint(add_req->gc, NULL, _("Authorization denied message:"), | 1031 purple_request_input(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 "blist", add_req); | 1036 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; |
2063 case 12: | 2063 case 12: |
2064 b = purple_find_buddy(gc->account, who); | 2064 b = purple_find_buddy(gc->account, who); |
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(gc, NULL, _("Ignore buddy?"), buf, 0, |
2069 gc->account, who, NULL, | 2069 gc->account, who, NULL, |
2070 "blist", b, | 2070 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: |
3492 | 3492 |
3493 | 3493 |
3494 static void yahoo_show_act_id(PurplePluginAction *action) | 3494 static void yahoo_show_act_id(PurplePluginAction *action) |
3495 { | 3495 { |
3496 PurpleConnection *gc = (PurpleConnection *) action->context; | 3496 PurpleConnection *gc = (PurpleConnection *) action->context; |
3497 purple_request_input_with_hint(gc, NULL, _("Activate which ID?"), NULL, | 3497 purple_request_input(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 "account", gc); | 3502 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(gc, NULL, _("Join whom 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 "chat", gc); | 3513 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; |