Re: [gtk-list] Re: A question about the GTK tree widget



I was hoping for something a bit more sophisticated than using a dummy item.
I actually found that the display of the + is determined by ythe presence of
a sub_tree, even if the subree contains no data.

Piet

-----Original Message-----
From: Kent Schumacher <kent@structural-wood.com>
To: gtk-list@redhat.com <gtk-list@redhat.com>
Date: Thursday, January 13, 2000 8:14 AM
Subject: [gtk-list] Re: A question about the GTK tree widget


>Piet Obermeyer wrote:
>
>> Hi
>>
>> How do I convince a gtk_tree object to display a + before the item name,
>> even though no items have been added to the tree.  I am busy writing a
>> specialized directory browser and I only want to show the first level of
>> directories or files on the disk in the tree.  If I can convince the tree
/
>> subtree objects to show a +, that particular subdirectory can be
populated
>> with another level when the user attempts to expand the node.
>>
>> Any ideas?
>
>Put a dummy item as a child node and use it as a flag that the directory
needs
>to be scanned?
>
>>
>>
>> Piet Obermeyer
>> Red Hat, Inc.
>>
>> --
>
>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>



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