Update of /cvsroot/gaim/gaim/src
In directory sc8-pr-cvs1:/tmp/cvs-serv16887/src
Modified Files:
gtkblist.c
Log Message:
(15:53:01) Paco-Paco: It does not seem safe to remove ui_data on gaim_gtk_blist_remove, this patch disables that until I can figure out what I should _really_ be doing
Index: gtkblist.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/gtkblist.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- gtkblist.c 29 Apr 2003 01:50:57 -0000 1.7
+++ gtkblist.c 30 Apr 2003 19:54:19 -0000 1.8
@@ -1495,7 +1495,17 @@
struct _gaim_gtk_blist_node *gtknode = (struct _gaim_gtk_blist_node *)node->ui_data;
GtkTreePath *path;
- if (!gtkblist || !gtknode->row)
+ if (!gtknode) {
+ gaim_debug(GAIM_DEBUG_ERROR, "gtkblist", "buddy %s has no ui_data\n", ((struct buddy *)node)->name);
+ return FALSE;
+ }
+
+ if (!gtkblist) {
+ gaim_debug(GAIM_DEBUG_ERROR, "gtkblist", "get_iter_from_node was called, but we don't seem to have a blist\n");
+ return FALSE;
+ }
+
+ if (!gtknode->row)
return FALSE;
if ((path = gtk_tree_row_reference_get_path(gtknode->row)) == NULL)
@@ -1550,8 +1560,9 @@
{
gaim_gtk_blist_hide_node(list, node);
- g_free(node->ui_data);
- node->ui_data = NULL;
+ /* There's something I don't understand here */
+ /* g_free(node->ui_data);
+ node->ui_data = NULL; */
}
static gboolean do_selection_changed(GaimBlistNode *new_selection)
|