comparison src/dialogs.c @ 5975:80e5258226f3

[gaim-migrate @ 6422] I made some changes so that, if you have 2 buddies in your buddy list with the same name, and you delete one by right clicking on it in the blist, gaim will delete the one you right clicked rather than an arbitrary one. I think the hash table that speeds up stuff in gtkblist.c has problems with having the same buddy in a group twice. Someone should look into that. Like, right now it treats buddy name/group name/account as a unique key, but right now that is not a unique key. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 29 Jun 2003 20:57:28 +0000
parents 730015652f4d
children 272c761c52e3
comparison
equal deleted inserted replaced
5974:1abc483f74c6 5975:80e5258226f3
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 }