Re: help

On Wed, 2004-04-07 at 07:59, Alan wrote:
> On Thu, Apr 01, 2004 at 12:56:47PM +0800, mengzhuo li wrote:
> > hi,thanks danny,:)
> > 
> > I have another question.
> > if a node hasn't subdirectories, i want to make the
> > expander invisible ,and i dont want the "(Empty)"
> > shown under a node which hasn't subdirectories.
> > how can i do that ? it has some relations with the
> > dummy node?
> > thanks in advance :).
> I have to chime in here and wonder why this is done this way.  This was
> done for 2.4, and at the time I thought it was a bit pointless... It
> would make more sense (to me anyway) to simply remove the triangle
> widget if the node is found to be empty.  Having it say "(Empty)" seems
> a bit wasteful IMHO.

There are technical reasons this was done to. If you don't have children
the expander will not be there, and if the expander isn't there you
can't open the directory. So. You have to know if the directory is empty
or not, meaning you have to read and monitor all subdirectories.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a notorious Republican stage actor moving from town to town, helping folk 
in trouble. She's a vivacious mute Hell's Angel with an evil twin sister. They 
fight crime! 

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