Re: [gtk-list] Removing children from gtkctree



Lee wrote:
> 
> Hi,
> 
> How should I go about removing all the children from a _specific_ node
> in a gtk ctree?
> 
> I know it is possible to do a post_recursive on a node, and 'remove'
> each node, but this seems very inefficient, when I should be able to
> assign ctree_node->children to NULL.
> 
> However, assigning to children to null just does *not* work. And there
> doesn't appear to be any built-in function(s) to remove all the children
> from a given node, just a tree.
> 
> So if anyone knows better/has any suggestions, I'd be grateful...
> 
> Incidentally, I'm using gtk+-1.1.13.
> 
Hi,
try to use gtk_ctree_remove_node, I think it's removing the children
nodes too ...

Ronan



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