Re: gtk_tree_view
- From: "David M. Cook" <dave davidcook org>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk_tree_view
- Date: Wed, 12 Mar 2003 16:28:38 -0800
On Wed, Mar 12, 2003 at 05:00:24PM +0100, Markus Lausser wrote:
I'd like to create a tree_view where the contents is created on demand
(dir browser). In terms: The childs of a node should only be created
when the node is expanded. Its known whether the node will have childs
before it is expanded. Now two questions:
1. Do i have to add a dummy child node if i want the parent node have
a expander to click on?
Yes, this is how I would do it. Just append a single empty child node.
AFAIK, the only other way to do it would be to implement your own TreeModel.
2. If yes, how do i insert a dummy node in the tree_model and prevent
the tree_view to expand it immediately?
The treeview won't expand immediately. Are you having a problem with this?
Dave Cook
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]