Re: GtkTreeView question
- From: James Drabb <JDrabb tampabay rr com>
- To: gtk-list gnome org
- Subject: Re: GtkTreeView question
- Date: Tue, 25 Feb 2003 20:58:50 -0500
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]