Re: TreeView expander questions (again)



Since no-one appears to have replied here is my meagre help.  
(Sorry, but I'm new to it all too)

On September 1, 2005 09:17 am, Wallace Owen wrote:
I'd like all the data I put in a treeview visible all the time
(fully expanded).  Is there a way to make new child rows in my
treeview expended when the model tells the view that the row
has been added, or must I call gtk_tree_view_expand_all()?

No idea.  I doubt it is automatic; I guess you will need to do it 
yourself.


Is there a way to make the expanders not show up?  Again, my
treeviews are always expanded, so having the expander there is
just a distraction for the user.  If not, can I set their size
to zero?

See section 9 of the GTK+ 2.0 Tree View tutorial. (esp. 9.2)
I see that this was a capability that was present in the old 
CTree but is not immediately supported with the new one.  As an 
added complication I wonder if having hid the expander you can 
still expand and collapse using the + and - keys.


If there's no way to tell the treeview to expand the rows on
creation, what's a good callback to hook so I can call
gtk_tree_view_expand_all() as needed?

I can't see one.  Is this for a library function or something 
where you are not in control?  If not then the easiest thing to 
do would be to do it as part of the code that actually makes the 
change to the data model.  I know it's imperfect but it's the 
best that I can think of.


I'm using gtk 2.4.0 as shipped with RedHat's FC3, if that's
important.


  // Wally

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 
Bill Medland
mailto:billmedland mercuryspeed com
http://webhome.idirect.com/~kbmed




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