Re: GTK Tree View

2008-06-04 Thread Eric Pastoor
t just the range of the rows that don't need scrolled to. On Jun 4, 2008, at 3:16 PM, Kristian Rietveld wrote: > On Wed, Jun 04, 2008 at 02:26:55PM -0400, Eric Pastoor wrote: >> And I expand on Root so that it looks like >> Root >> --> Sub Tree A >> -

Re: GTK Tree View

2008-06-04 Thread Eric Pastoor
-> Child A It makes no different on what get_visible_range returns. Any thoughts? On Jun 4, 2008, at 1:40 PM, Kristian Rietveld wrote: > On Wed, Jun 04, 2008 at 11:14:13AM -0400, Eric Pastoor wrote: >> What is the best way to determine if a row of a tree is inside the &g

GTK Tree View

2008-06-04 Thread Eric Pastoor
What is the best way to determine if a row of a tree is inside the visible part of scrolling window or not? For instance, if I hit the expand on a tree item, I'd like to know if a certain child in that tree is visible to the user or if it outside of the scrollable viewing area?

Tree View Scrolling

2008-06-03 Thread Eric Pastoor
I am trying to get a GtkTree to show all of the children if possible when the user expands the parent. This is my callback routine on the row-expanded signal. The technique I thought I would use is to first scroll the tree to the last row. Then scroll it back to the parent. This would make

tree scroll

2008-05-06 Thread Eric Pastoor
I am trying to force a scroll to a row in a tree. I have a tree with about 20 items in of which only about 10 are visible. Scrolling with the mouse on the tree works fine. After a user presses a button, I am trying to scroll to the newest row added to the tree(which is not usually the last

GtkTreeView Expand All

2008-05-02 Thread Eric Pastoor
I am trying to figure how to recursively expand all from the current selection in a gtk tree. I know the function gtk_tree_view_expand_all(GtkTreeView*) will expand the entire tree. However, I have set up a right click menu with an option that I would like to expand everything from the current po