comparison src/gtkconv.c @ 4687:283fb289c510

[gaim-migrate @ 4998] This is a new buddy list. Lots of things about it just Don't Work. I probably already know about those things, and you'd just be wasting my time in submitting a bug report about it. I decided that instead of getting it to all work perfectly before committing, that I'd get it in cvs, and slowly fix it with regular commits. That way, it's easier to keep track of things, and other developers can help. Plus, I'm getting pissed off at the buddy list and want it to die. It's kinda boring, and doing nothing but the buddy list for such a long time has just gotten me very bitter. After 0.60 is released later this week, Gaim will resume being fun. This week is going to be very stressful, though, I'm sure. Things you ought to know about this buddy list: - It crashes - It leaks - There's no way to edit the buddy list, or access offline buddies - Most of the menus and buttons and whatnot just plain ol' don't work. - Status icons are only implemented for AIM. That's mostly just because I'm lazy. As such, you may want to be wary of updating this. If you do decide to update this, you may want to learn "cvs update -D yesterday" as well :) All the art there is just placeholder art. You probably won't really have as many problems as it sounds like you will from reading this. This message is extra-negative to stress that I don't want to be bothered with complaints about something not working about it :). I'll repeat: If something doesn't work, I probably already know about it. If you want to actually help with something, I'd be delighted to have it. IM me. -s. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 10 Mar 2003 05:30:31 +0000
parents 794cc8ec1166
children 69b19e132df0
comparison
equal deleted inserted replaced
4686:a1de8a9c99ba 4687:283fb289c510
445 struct buddy *b; 445 struct buddy *b;
446 const char *name; 446 const char *name;
447 447
448 gc = gaim_conversation_get_gc(conv); 448 gc = gaim_conversation_get_gc(conv);
449 name = gaim_conversation_get_name(conv); 449 name = gaim_conversation_get_name(conv);
450 b = find_buddy(gc->account, name); 450 b = gaim_find_buddy(gc->account, name);
451 451
452 if (b != NULL) 452 if (b != NULL)
453 show_confirm_del(gc, (char *)name); 453 show_confirm_del(gc, (char *)name);
454 else if (gc != NULL) 454 else if (gc != NULL)
455 show_add_buddy(gc, (char *)name, NULL, NULL); 455 show_add_buddy(gc, (char *)name, NULL, NULL);
654 struct buddy *b; 654 struct buddy *b;
655 char *name; 655 char *name;
656 656
657 gc = gaim_conversation_get_gc(conv); 657 gc = gaim_conversation_get_gc(conv);
658 name = g_object_get_data(G_OBJECT(w), "user_data"); 658 name = g_object_get_data(G_OBJECT(w), "user_data");
659 b = find_buddy(gc->account, name); 659 b = gaim_find_buddy(gc->account, name);
660 660
661 if (b != NULL) 661 if (b != NULL)
662 show_confirm_del(gc, name); 662 show_confirm_del(gc, name);
663 else if (gc != NULL) 663 else if (gc != NULL)
664 show_add_buddy(gc, name, NULL, NULL); 664 show_add_buddy(gc, name, NULL, NULL);
762 gtk_widget_show(button); 762 gtk_widget_show(button);
763 } 763 }
764 764
765 /* Added by Jonas <jonas@birme.se> */ 765 /* Added by Jonas <jonas@birme.se> */
766 if (gc) { 766 if (gc) {
767 if (find_buddy(gc->account, who)) 767 if (gaim_find_buddy(gc->account, who))
768 button = gtk_menu_item_new_with_label(_("Remove")); 768 button = gtk_menu_item_new_with_label(_("Remove"));
769 else 769 else
770 button = gtk_menu_item_new_with_label(_("Add")); 770 button = gtk_menu_item_new_with_label(_("Add"));
771 771
772 g_signal_connect(G_OBJECT(button), "activate", 772 g_signal_connect(G_OBJECT(button), "activate",
2528 gtk_widget_show(gtkim->sep2); 2528 gtk_widget_show(gtkim->sep2);
2529 2529
2530 /* Now, um, just kind of all over the place. Huh? */ 2530 /* Now, um, just kind of all over the place. Huh? */
2531 2531
2532 /* Add button */ 2532 /* Add button */
2533 if (find_buddy(gaim_conversation_get_account(conv), 2533 if (gaim_find_buddy(gaim_conversation_get_gc(conv),
2534 gaim_conversation_get_name(conv)) == NULL) { 2534 gaim_conversation_get_name(conv)) == NULL) {
2535 gtkim->add = gaim_gtk_change_text(_("Add"), gtkim->add, 2535 gtkim->add = gaim_gtk_change_text(_("Add"), gtkim->add,
2536 GTK_STOCK_ADD, type); 2536 GTK_STOCK_ADD, type);
2537 gtk_tooltips_set_tip(gtkconv->tooltips, gtkim->add, 2537 gtk_tooltips_set_tip(gtkconv->tooltips, gtkim->add,
2538 _("Add the user to your buddy list"), NULL); 2538 _("Add the user to your buddy list"), NULL);
3564 type = gaim_conversation_get_type(conv); 3564 type = gaim_conversation_get_type(conv);
3565 gc = gaim_conversation_get_gc(conv); 3565 gc = gaim_conversation_get_gc(conv);
3566 gtkconv = GAIM_GTK_CONVERSATION(conv); 3566 gtkconv = GAIM_GTK_CONVERSATION(conv);
3567 parent = gtk_widget_get_parent(gtkconv->u.im->add); 3567 parent = gtk_widget_get_parent(gtkconv->u.im->add);
3568 3568
3569 if (find_buddy(gc->account, gaim_conversation_get_name(conv))) { 3569 if (gaim_find_buddy(gc->account, gaim_conversation_get_name(conv))) {
3570 gtkconv->u.im->add = 3570 gtkconv->u.im->add =
3571 gaim_gtk_change_text(_("Remove"), gtkconv->u.im->add, 3571 gaim_gtk_change_text(_("Remove"), gtkconv->u.im->add,
3572 GTK_STOCK_REMOVE, type); 3572 GTK_STOCK_REMOVE, type);
3573 gtk_tooltips_set_tip(gtkconv->tooltips, gtkconv->u.im->add, 3573 gtk_tooltips_set_tip(gtkconv->tooltips, gtkconv->u.im->add,
3574 _("Remove the user from your buddy list"), NULL); 3574 _("Remove the user from your buddy list"), NULL);