comparison src/dialogs.c @ 5498:cce2d7868c78

[gaim-migrate @ 5894] Bye bye do_ask_dialog()! Mwahahahahhaha! And wit -> with. What wit with the witty with wit comment, wit you jutht thaw. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 23 May 2003 02:42:52 +0000
parents ad445074d239
children 7a64114641c3
comparison
equal deleted inserted replaced
5497:3c7748b24410 5498:cce2d7868c78
463 char *text; 463 char *text;
464 if (!bd) 464 if (!bd)
465 return; 465 return;
466 466
467 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), name); 467 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), name);
468 do_ask_dialog(_("Remove Buddy"), text, bd, _("Remove Buddy"), do_remove_buddy, _("Cancel"), NULL, NULL, FALSE); 468
469 gaim_request_action(NULL, NULL, _("Remove Buddy"), text, -1, bd, 2,
470 _("Remove Buddy"), G_CALLBACK(do_remove_buddy),
471 _("Cancel"), NULL);
472
469 g_free(text); 473 g_free(text);
470 } 474 }
471 475
472 void show_confirm_del_chat(struct chat *chat) 476 void show_confirm_del_chat(struct chat *chat)
473 { 477 {
474 char *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), chat->alias); 478 char *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), chat->alias);
475 do_ask_dialog(_("Remove Chat"), text, chat, _("Remove Chat"), do_remove_chat, _("Cancel"), NULL, NULL, FALSE); 479
480 gaim_request_action(NULL, NULL, _("Remove Chat"), text, -1, chat, 2,
481 _("Remove Chat"), G_CALLBACK(do_remove_chat),
482 _("Cancel"), NULL);
483
476 g_free(text); 484 g_free(text);
477 } 485 }
478 486
479 void show_confirm_del_group(struct group *g) 487 void show_confirm_del_group(struct group *g)
480 { 488 {
481 char *text = g_strdup_printf(_("You are about to remove the group %s and all its members from your buddy list. Do you want to continue?"), 489 char *text = g_strdup_printf(_("You are about to remove the group %s and all its members from your buddy list. Do you want to continue?"),
482 g->name); 490 g->name);
483 do_ask_dialog(_("Remove Group"), text, g, _("Remove Group"), do_remove_group, _("Cancel"), NULL, NULL, FALSE); 491
492 gaim_request_action(NULL, NULL, _("Remove Group"), text, -1, g, 2,
493 _("Remove Group"), G_CALLBACK(do_remove_group),
494 _("Cancel"), NULL);
495
484 g_free(text); 496 g_free(text);
485 } 497 }
486 498
487 /*------------------------------------------------------------------------*/ 499 /*------------------------------------------------------------------------*/
488 /* The dialog for getting an error */ 500 /* The dialog for getting an error */