|
From: <sa...@us...> - 2006-09-07 22:58:01
|
Revision: 17185
http://svn.sourceforge.net/gaim/?rev=17185&view=rev
Author: sadrul
Date: 2006-09-07 15:57:52 -0700 (Thu, 07 Sep 2006)
Log Message:
-----------
wabz reported this bug. It should be fixed now.
Modified Paths:
--------------
trunk/console/gntblist.c
Modified: trunk/console/gntblist.c
===================================================================
--- trunk/console/gntblist.c 2006-09-07 22:18:54 UTC (rev 17184)
+++ trunk/console/gntblist.c 2006-09-07 22:57:52 UTC (rev 17185)
@@ -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()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|