Re: GtkTreeView question



On Mon, 24 Feb 2003 19:02:16 +0100
Bernd Bartmann <Bernd Bartmann sohanet de> wrote:

> Is it possible to create a tree node in a GtkTreeView which has no 
> sub-nodes but nonetheless has the expand/collapse handle?
> 
> What I want to do is to create a tree view of the local filesystem. As
> 
> reading in the whole filesystem tree on startup takes way to long I 
> thought it would be better to only read in the directories that are 
> really "needed". So a sub dir is actually read in when the user clicks
> 
> on the expand handle. But when a tree node has no sub-nodes there is
> no expand handle.
> 
> Thanks in advance!

Why don't you just populate the first node with the top level
directories?  This won't take long at all and you will have
sub-nodes so you get the expand handle.  So, your top node
will have /usr, /bin, /sbin, etc/, foo/ bar/ in there.

Jim Drabb
-- 
---------------------------------------------------------------
Those who would sacrifice freedom for security will get neither
---------------------------------------------------------------
James Drabb JR
Programmer Analyst
Davenport, FL
JDrabb at tampabay dot rr dot com



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