Re: [gtkmm] TreeView.get_selection()->select problem



On Sun, 2002-08-04 at 14:11, Stephen M. Przepiora wrote:
> Hello, I'm trying to select the first thing in the treeview like this:
> TreeView.get_selection()->select(Gtk::TreePath(true),Gtk::TreePath(true));

The TreePath(true) constructor creates a path to the root node. You
probably want the first child. Maybe you should try children().begin()
to get an iterator to the first child.
 
-- 
Murray Cumming
murrayc usa net
www.murrayc.com




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