Mercurial > pidgin
comparison src/buddy.c @ 3496:784ded279bfd
[gaim-migrate @ 3557]
Jason Willis submitted a patch to make unaliasing someone in the edit tab unalias
the person in the online tab also. bug fixes are always good things.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 12 Sep 2002 14:33:33 +0000 |
parents | cfbdfe334975 |
children | b8783a46e476 |
comparison
equal
deleted
inserted
replaced
3495:adaa8cbf79e9 | 3496:784ded279bfd |
---|---|
733 return FALSE; | 733 return FALSE; |
734 } | 734 } |
735 | 735 |
736 static void un_alias(GtkWidget *a, struct buddy *b) | 736 static void un_alias(GtkWidget *a, struct buddy *b) |
737 { | 737 { |
738 struct group *g = find_group_by_buddy(b->gc, b->name); | |
739 struct group_show *gs = find_group_show(g->name); | |
740 struct buddy_show *bs = NULL; | |
741 GtkCTreeNode *node = gtk_ctree_find_by_row_data(GTK_CTREE(edittree), NULL, b); | |
742 g_snprintf(b->show, sizeof(b->show), "%s", b->name); | 738 g_snprintf(b->show, sizeof(b->show), "%s", b->name); |
743 gtk_ctree_node_set_text(GTK_CTREE(edittree), node, 0, b->name); | 739 /* passing b->show as the previous name seems to be the (current) |
740 * way to get the bs->lable changed for that buddy. However, this | |
741 * function should do everything that needs to be done | |
742 */ | |
743 handle_buddy_rename(b, b->show); /* make me a sammich! */ | |
744 serv_alias_buddy(b); | 744 serv_alias_buddy(b); |
745 if (gs) | 745 |
746 bs = find_buddy_show(gs, b->name); | |
747 if (bs) | |
748 gtk_label_set(GTK_LABEL(bs->label), b->name); | |
749 do_export(b->gc); | |
750 } | 746 } |
751 | 747 |
752 static gboolean click_edit_tree(GtkWidget *widget, GdkEventButton *event, gpointer data) | 748 static gboolean click_edit_tree(GtkWidget *widget, GdkEventButton *event, gpointer data) |
753 { | 749 { |
754 GtkCTreeNode *node; | 750 GtkCTreeNode *node; |