comparison src/gtkconv.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 5fb6bd688a5b
children 66a8e4938e17
comparison
equal deleted inserted replaced
5974:1abc483f74c6 5975:80e5258226f3
442 gc = gaim_conversation_get_gc(conv); 442 gc = gaim_conversation_get_gc(conv);
443 name = gaim_conversation_get_name(conv); 443 name = gaim_conversation_get_name(conv);
444 b = gaim_find_buddy(gc->account, name); 444 b = gaim_find_buddy(gc->account, name);
445 445
446 if (b != NULL) 446 if (b != NULL)
447 show_confirm_del(gc, (char *)name); 447 show_confirm_del(b);
448 else if (gc != NULL) 448 else if (gc != NULL)
449 show_add_buddy(gc, (char *)name, NULL, NULL); 449 show_add_buddy(gc, (char *)name, NULL, NULL);
450 450
451 gtk_widget_grab_focus(GAIM_GTK_CONVERSATION(conv)->entry); 451 gtk_widget_grab_focus(GAIM_GTK_CONVERSATION(conv)->entry);
452 } 452 }
979 gc = gaim_conversation_get_gc(conv); 979 gc = gaim_conversation_get_gc(conv);
980 name = g_object_get_data(G_OBJECT(w), "user_data"); 980 name = g_object_get_data(G_OBJECT(w), "user_data");
981 b = gaim_find_buddy(gc->account, name); 981 b = gaim_find_buddy(gc->account, name);
982 982
983 if (b != NULL) 983 if (b != NULL)
984 show_confirm_del(gc, name); 984 show_confirm_del(b);
985 else if (gc != NULL) 985 else if (gc != NULL)
986 show_add_buddy(gc, name, NULL, NULL); 986 show_add_buddy(gc, name, NULL, NULL);
987 987
988 gtk_widget_grab_focus(GAIM_GTK_CONVERSATION(conv)->entry); 988 gtk_widget_grab_focus(GAIM_GTK_CONVERSATION(conv)->entry);
989 } 989 }