RE: [gtkmm] Iam not able to fetch the row elements from a multipl e row selected tree.
- From: Murray Cumming Comneon com
- To: n_gouda123 yahoo com, gtkmm-list gnome org
- Subject: RE: [gtkmm] Iam not able to fetch the row elements from a multipl e row selected tree.
- Date: Wed, 7 Jan 2004 12:58:45 +0100
> Hi,
> Iam trying to fetch the rows selected using
> Gtk::TreeSelection::get_selected_rows(Glib::RefPtr<TreeModel>&
> model)..
> But i dont know how to do it using gtkmm-2.2.0.
What have you tried?
Std::list<Gtk::TreeModel::Path> listPaths = get_selected_rows() should work.
You could use TreeModel::get_iter(path) to get an iter, and then a row for
each one:
http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1TreeModel.html#a
3
Maybe we should have Gtk::TreeSelection::get_selected_rows_as_iters() as
well.
By the way, I have added _lots_ of TreeView reference docs in gtkmm 2.4, but
they are not uploaded yet.
Murray Cumming
www.murrayc.com
murrayc usa net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]