Re: gtk_ctree_insert_gnode bug?!



<timecop japan co jp> writes:

> gnode_to_ctree does all the usual stuff, and returns "TRUE" for gnodes of
> "directory" type, and sets the tree data, and returns FALSE for all the
> other types. The problem is that when I return "FALSE" for the
> non-processed entries, the ctree freeze count isnt decremented. So after
> inserting a few 10000 item gnodes with maybe few thousand entries actually
> inserted into the ctree, I end up with a clist->freeze_count of a few
> thousand.

Yes, this is a real bug. Something like the following should fix
it. 

Regards,
                                        Owen

Index: gtkctree.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkctree.c,v
retrieving revision 1.84
diff -u -r1.84 gtkctree.c
--- gtkctree.c	2001/04/24 14:58:32	1.84
+++ gtkctree.c	2001/06/04 16:50:03
@@ -3765,6 +3765,7 @@
   if (!func (ctree, depth, gnode, cnode, data))
     {
       tree_delete_row (ctree, cnode, NULL);
+      gtk_clist_thaw (clist);
       return NULL;
     }
 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]