# HG changeset patch # User Luke Schierer # Date 1031841213 0 # Node ID 784ded279bfdcd0d205546f1657ef8f27ab17133 # Parent adaa8cbf79e9f0a3cb129f0c5939631806eb76d4 [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 diff -r adaa8cbf79e9 -r 784ded279bfd src/buddy.c --- a/src/buddy.c Wed Sep 11 05:24:44 2002 +0000 +++ b/src/buddy.c Thu Sep 12 14:33:33 2002 +0000 @@ -735,18 +735,14 @@ static void un_alias(GtkWidget *a, struct buddy *b) { - struct group *g = find_group_by_buddy(b->gc, b->name); - struct group_show *gs = find_group_show(g->name); - struct buddy_show *bs = NULL; - GtkCTreeNode *node = gtk_ctree_find_by_row_data(GTK_CTREE(edittree), NULL, b); g_snprintf(b->show, sizeof(b->show), "%s", b->name); - gtk_ctree_node_set_text(GTK_CTREE(edittree), node, 0, b->name); + /* passing b->show as the previous name seems to be the (current) + * way to get the bs->lable changed for that buddy. However, this + * function should do everything that needs to be done + */ + handle_buddy_rename(b, b->show); /* make me a sammich! */ serv_alias_buddy(b); - if (gs) - bs = find_buddy_show(gs, b->name); - if (bs) - gtk_label_set(GTK_LABEL(bs->label), b->name); - do_export(b->gc); + } static gboolean click_edit_tree(GtkWidget *widget, GdkEventButton *event, gpointer data)