Re: Gtk::TreeSelection::get_selected_rows()



Murray Cumming wrote:

On Wed, 2005-10-19 at 00:33 -0500, Paul Davis wrote:
Doug McLain wrote:

The gtkmm tutorial Treeview sections gives an example of getting multiple selections using the selected_foreach_iter() slot, but I want to try get_selected_rows(). I don't know how to use the return value though, ListHandle_Path. Could someone explain or show me a simple example?

Use, for instance, a std::list<Gtk::TreeModel::Path>:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch03s05.html

If you're using multiple selection, you *must* use selected_foreach_iter().

That was only true before we added get_selected_rows().
[snip]

Murray

I stand corrected.

Cheers,
Paul



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