Re: GtkTreeView question



>>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!


I don\'t think it is possible to do that.
But you can use this trick ( i think Nautilus uses it also):
you can add 1 child to your main iters ( named for ex \"..\")
and when the iter is expanded you can delete the first row and add the iters coresponding to your dir entries.
 
 
--

RUK;
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck; more ; yes ; umount ; sleep


Acest email a fost trimis din interfata web http://www.bumerang.ro






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