On 11.07.2010, at 20:28, Greg Ercolano wrote:

>      I've attached a patch that will probably solve all of that.
>
>      Here, the patch adds:
>
>       1) a 'group' pointer to the Fl_Tree_Items so that it can talk to the 
> parent group.
>       2) Appropriate destructor code for the item to clear the widget(s) it 
> owns
>       3) Fixed the test/tree.cxx code so that the widgets are no longer static
>
>      The tree.fl will need the final fixes, and at some point tree.cxx will
>      need to be removed from svn and replaced with just tree.fl.

Greg, please be careful with tree.cxx. You're looking at a stale svn 
copy. As I wrote in my other post already, Matt *changed* tree.fl, and
I *removed* tree.cxx and tree.fl already !!!

>      Arguably the Fl_Tree_Item should keep a pointer back to the parent 
> Fl_Tree
>      instead of just the group, but was trying to prevent a backwards 
> association
>      that is too tight. There might be a better way to do this association, 
> not sure.
>      Input welcome.

Your description looks good, but I'll have to look at the patch later.
Thanks for taking care of this so quickly.

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to