Mercurial > pidgin
comparison src/gtkprivacy.c @ 12603:e4e47871c373
[gaim-migrate @ 14938]
SF Patch #1377898 from Nathan Conrad
"This patch adds accelerator key mappings for buttons in
dialog boxes
created using gaim_request_action."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 21 Dec 2005 21:18:25 +0000 |
parents | a511b77a368b |
children | c0fbdea8828b |
comparison
equal
deleted
inserted
replaced
12602:317d1dfedeed | 12603:e4e47871c373 |
---|---|
589 gaim_request_input(account, _("Permit User"), | 589 gaim_request_input(account, _("Permit User"), |
590 _("Type a user you permit to contact you."), | 590 _("Type a user you permit to contact you."), |
591 _("Please enter the name of the user you wish to be " | 591 _("Please enter the name of the user you wish to be " |
592 "able to contact you."), | 592 "able to contact you."), |
593 NULL, FALSE, FALSE, NULL, | 593 NULL, FALSE, FALSE, NULL, |
594 _("Permit"), G_CALLBACK(add_permit_block_cb), | 594 _("_Permit"), G_CALLBACK(add_permit_block_cb), |
595 _("Cancel"), G_CALLBACK(destroy_request_data), | 595 _("Cancel"), G_CALLBACK(destroy_request_data), |
596 data); | 596 data); |
597 } | 597 } |
598 else { | 598 else { |
599 char *primary = g_strdup_printf(_("Allow %s to contact you?"), name); | 599 char *primary = g_strdup_printf(_("Allow %s to contact you?"), name); |
602 "%s to contact you?"), name); | 602 "%s to contact you?"), name); |
603 | 603 |
604 | 604 |
605 gaim_request_action(account, _("Permit User"), primary, secondary, | 605 gaim_request_action(account, _("Permit User"), primary, secondary, |
606 0, data, 2, | 606 0, data, 2, |
607 _("Permit"), G_CALLBACK(confirm_permit_block_cb), | 607 _("_Permit"), G_CALLBACK(confirm_permit_block_cb), |
608 _("Cancel"), G_CALLBACK(destroy_request_data)); | 608 _("Cancel"), G_CALLBACK(destroy_request_data)); |
609 | 609 |
610 g_free(primary); | 610 g_free(primary); |
611 g_free(secondary); | 611 g_free(secondary); |
612 } | 612 } |
627 if (name == NULL) { | 627 if (name == NULL) { |
628 gaim_request_input(account, _("Block User"), | 628 gaim_request_input(account, _("Block User"), |
629 _("Type a user to block."), | 629 _("Type a user to block."), |
630 _("Please enter the name of the user you wish to block."), | 630 _("Please enter the name of the user you wish to block."), |
631 NULL, FALSE, FALSE, NULL, | 631 NULL, FALSE, FALSE, NULL, |
632 _("Block"), G_CALLBACK(add_permit_block_cb), | 632 _("_Block"), G_CALLBACK(add_permit_block_cb), |
633 _("Cancel"), G_CALLBACK(destroy_request_data), | 633 _("Cancel"), G_CALLBACK(destroy_request_data), |
634 data); | 634 data); |
635 } | 635 } |
636 else { | 636 else { |
637 char *primary = g_strdup_printf(_("Block %s?"), name); | 637 char *primary = g_strdup_printf(_("Block %s?"), name); |
638 char *secondary = | 638 char *secondary = |
639 g_strdup_printf(_("Are you sure you want to block %s?"), name); | 639 g_strdup_printf(_("Are you sure you want to block %s?"), name); |
640 | 640 |
641 gaim_request_action(account, _("Block User"), primary, secondary, | 641 gaim_request_action(account, _("Block User"), primary, secondary, |
642 0, data, 2, | 642 0, data, 2, |
643 _("Block"), G_CALLBACK(confirm_permit_block_cb), | 643 _("_Block"), G_CALLBACK(confirm_permit_block_cb), |
644 _("Cancel"), G_CALLBACK(destroy_request_data)); | 644 _("Cancel"), G_CALLBACK(destroy_request_data)); |
645 | 645 |
646 g_free(primary); | 646 g_free(primary); |
647 g_free(secondary); | 647 g_free(secondary); |
648 } | 648 } |