TreeView Scrolling errors



When I populate a treeview widget and then use gtk_tree_view_set_cursor()
and gtk_tree_view_scroll_to_cell() to try to scroll to a particular row in
that widget, the scroll_to() call almost never works correctly.  The
set_cursor function selects the correct row, but the scroll_to_cell only
works if the cell to scroll to is in the first couple pages of the treeview.
If the cell I want to scroll to is several pages down, the tree view will
only scroll halfway to cell.  The correct cell is still selected, so I know
I'm not trying to go to the wrong path.

Filling the gtk-demo treeview with a lot of junk rows and then trying to
scroll to one of them gives the same results.

Is this a known bug in GtkTreeViews?  I haven't seen mention of it anywhere.

btw, I am using gtk 2.0.6 on redhat 7.3

Thanks a lot!




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