| 438 } |
438 } |
| 439 gaim_blist_remove_group(g); |
439 gaim_blist_remove_group(g); |
| 440 gaim_blist_save(); |
440 gaim_blist_save(); |
| 441 } |
441 } |
| 442 |
442 |
| 443 void show_confirm_del(GaimConnection *gc, gchar *name) |
443 void show_confirm_del(struct buddy *b) |
| 444 { |
444 { |
| 445 struct buddy *bd = gaim_find_buddy(gc->account, name); |
|
| 446 char *text; |
445 char *text; |
| 447 if (!bd) |
446 if (!b) |
| 448 return; |
447 return; |
| 449 |
448 |
| 450 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), name); |
449 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), b->name); |
| 451 |
450 |
| 452 gaim_request_action(NULL, NULL, _("Remove Buddy"), text, -1, bd, 2, |
451 gaim_request_action(NULL, NULL, _("Remove Buddy"), text, -1, b, 2, |
| 453 _("Remove Buddy"), G_CALLBACK(do_remove_buddy), |
452 _("Remove Buddy"), G_CALLBACK(do_remove_buddy), |
| 454 _("Cancel"), NULL); |
453 _("Cancel"), NULL); |
| 455 |
454 |
| 456 g_free(text); |
455 g_free(text); |
| 457 } |
456 } |