[Lablgtk] segfault when reattaching a tree model to a tree view

Jacques Garrigue garrigue at math.nagoya-u.ac.jp
Wed Sep 15 09:11:04 CEST 2010


On Wed, Sep 15, 2010 at 1:41 PM, Peter Groves <pdgroves at gmail.com> wrote:
> One more update: when I put the tree_view in a scrolled_window the
> "wrong" way, where the column headers scroll away like everything
> else, the problem also goes away. I do this by adding the tree_view to
> the scrolled_window using scroller#add_with_viewport instead of
> scroller#add.

I was using #add_with_viewport.
Here is a new version of tree_model.ml which does it right.
Again, you must link it with gtkInit.cmo.
For me it works correctly.

Jacques
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree_model.ml
Type: application/octet-stream
Size: 6781 bytes
Desc: not available
URL: <http://lists.ocamlcore.org/pipermail/lablgtk-list/attachments/20100915/fa522175/attachment.obj>
-------------- next part --------------
_______________________________________________
Lablgtk mailing list
Lablgtk at yquem.inria.fr
http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk


More information about the Lablgtk-list mailing list