# HG changeset patch # User Sadrul Habib Chowdhury # Date 1157669872 0 # Node ID ddfe82afecd8ca139df6281c8135fa5a67fbeae1 # Parent 847e846eb07e8882bb02b59fa18ca3273c100f83 [gaim-migrate @ 17185] wabz reported this bug. It should be fixed now. committer: Tailor Script diff -r 847e846eb07e -r ddfe82afecd8 console/gntblist.c --- a/console/gntblist.c Thu Sep 07 22:18:54 2006 +0000 +++ b/console/gntblist.c Thu Sep 07 22:57:52 2006 +0000 @@ -636,7 +636,7 @@ } static void -chat_components_edit(GaimChat *chat, GaimBlistNode *null) +chat_components_edit(GaimChat *chat, GaimBlistNode *selected) { GaimRequestFields *fields = gaim_request_fields_new(); GaimRequestFieldGroup *group = gaim_request_field_group_new(NULL); @@ -688,19 +688,19 @@ } static void -gg_add_buddy(GaimGroup *grp, GaimBlistNode *node) +gg_add_buddy(GaimGroup *grp, GaimBlistNode *selected) { gaim_blist_request_add_buddy(NULL, NULL, grp->name, NULL); } static void -gg_add_group(GaimGroup *grp, GaimBlistNode *node) +gg_add_group(GaimGroup *grp, GaimBlistNode *selected) { gaim_blist_request_add_group(); } static void -gg_add_chat(GaimGroup *grp, GaimBlistNode *node) +gg_add_chat(GaimGroup *grp, GaimBlistNode *selected) { gaim_blist_request_add_chat(NULL, grp, NULL, NULL); } @@ -717,7 +717,7 @@ } static void -gg_blist_get_buddy_info_cb(GaimBuddy *buddy, GaimBlistNode *null) +gg_blist_get_buddy_info_cb(GaimBuddy *buddy, GaimBlistNode *selected) { serv_get_info(buddy->account->gc, gaim_buddy_get_name(buddy)); } @@ -779,7 +779,7 @@ void (*callback)(GaimBlistNode *, gpointer); callback = (void (*)(GaimBlistNode *, gpointer))action->callback; if (callback) - callback(node, action->data); + callback(action->data, node); else return; } @@ -807,7 +807,7 @@ } static void -gg_blist_rename_node_cb(GaimBlistNode *node, GaimBlistNode *null) +gg_blist_rename_node_cb(GaimBlistNode *node, GaimBlistNode *selected) { const char *name = NULL; char *prompt; @@ -888,7 +888,7 @@ } static void -gg_blist_remove_node_cb(GaimBlistNode *node, GaimBlistNode *null) +gg_blist_remove_node_cb(GaimBlistNode *node, GaimBlistNode *selected) { char *primary; const char *name, *sec = NULL; @@ -1354,15 +1354,18 @@ static void redraw_blist(const char *name, GaimPrefType type, gconstpointer val, gpointer data) { - GaimBlistNode *node; + GaimBlistNode *node, *sel; if (ggblist == NULL) return; + sel = gnt_tree_get_selection_data(GNT_TREE(ggblist->tree)); gnt_tree_remove_all(GNT_TREE(ggblist->tree)); node = gaim_blist_get_root(); for (; node; node = gaim_blist_node_next(node, TRUE)) node->ui_data = NULL; populate_buddylist(); + gnt_tree_set_selected(GNT_TREE(ggblist->tree), sel); + draw_tooltip(ggblist); } void gg_blist_init()