Re: [gtkmm] iterating through a ListView
- From: "Andreas B. Thun" <abt gmx de>
- To: Chris Vine <chris cvine freeserve co uk>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] iterating through a ListView
- Date: Mon, 23 Feb 2004 09:09:06 +0100
This works fine. Thx a lot!
You have to obtain a path object and work on that, viz:
tree_path.prev(); // tree_path now refers to the row of the list store
// preceding the selected one
Gtk::TreeModel::iterator prev_row_iter = [list_store]->get_iter(tree_path);
[list_store] is a Glib::RefPtr<Gtk::ListStore> reference to your list store
(if that's what you are using).
] [Thread Prev