Re: [gtk-list] Removing children from gtkctree



On Mon, Feb 08, 1999 at 04:31:10PM +0000, Lee wrote:

> 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.

Setting children to NULL is simply not enough. ctree has to free some
memory, unref pixmaps, adjust selections, adjust a few glists etc..
The correct way is to use post_recursive.

bye,
  Lars



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