changeset 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 adaa8cbf79e9
children 1258406146e7
files src/buddy.c
diffstat 1 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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)