Re: [gtk-list] Removing children from gtkctree
- From: Lars Hamann <lars gtk org>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Removing children from gtkctree
- Date: Mon, 8 Feb 1999 20:39:46 +0100
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]