Content-Type: text/plain; charset="iso-8859-1" From: Stalkern 2 Reply-To: stalkern2 at tin.it To: lablgtk at kaba.or.jp Subject: Re: Trees, subtrees and tree_items Date: Fri, 24 Jan 2003 11:58:00 +0100 References: <200301232143.06561.stalkern2 at tin.it> In-Reply-To: <200301232143.06561.stalkern2 at tin.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200301241158.00873.stalkern2 at tin.it> Il Thursday 23 January 2003 21:43, Stalkern 2 ha scritto: > Hello to everybody. > I'm still working on my tree and looking for some things to be sure about. Now I see that a subtree is a ghost form of tree as a twin brother for a tree_item, so I can answer by myself: > Furthermore, I wonder whether are these statement right: > 1) A tree is made of tree_items. YES > 2) The name "subtree" stands for the container of such tree_items. NO. The subtree bound to a tree_item stands for the container of tree_items below that one. > 3) Both subtree and tree_items can be sibling children of either a tree or > a subtree. NO. Subtrees imply tree-items, so it is incorrect to speak about a sibling children relationship between a subtree and its tree item. Furthermore, a subtree IS ALWAYS a tree (although a tree can be a root tree) > 4) A tree is a orphan subtree. NO. See above. Orphan subtrees do not exist, because subtrees hav to be bound to tree_items that have to be in a tree, so even if I see one label (corresponding to a tree_item), that is at least at the first generation of the tree (that is not visible in itself). > 5) It is NOT possible to turn a tree_item without a subtree in a tree_item > with a subtree, but it is possible to turn a tree_item into a subtree and > viceversa NO. It IS possible to turn a tree_item without a subtree in a tree_item with a subtree, and it is NOT possible to turn a tree_item into a subtree, but only to bind a subtree to it. > 6) A newly created subtree does NOT require to be filled with a child EXACTLY > > Actually I think that I'm confusing the Gtk tree structure with the > filesystem one, and I tend to see a tree as the Root / and subtrees as > dirs. Am I right in doing so? YES, It's QUITE alike. Cheers Ernesto