How to know if the Gtk::TreeModel::Children::iterator is equal to the selection
- From: TheLonelyStar <nabble lonely-star org>
- To: gtkmm-list gnome org
- Subject: How to know if the Gtk::TreeModel::Children::iterator is equal to the selection
- Date: Thu, 8 Mar 2007 08:09:39 -0800 (PST)
Hello dear community,
I am iterating over the items of a TreeView/ListStore using
Gtk::TreeModel::Children::iterator!
Now I want to do something special, for the selected item.
I tried:
Gtk::TreeModel::Children::iterator i;
Glib::RefPtr<Gtk::TreeSelection> refTreeSelection; //<-The selection is
stored in here (using get_selection)
for(...)
{
...
if(i==refTreeSelection->get_selected())
..
}
This does unfortantly not work.
What would be the correct way?
Thanks!
Nathan
--
View this message in context: http://www.nabble.com/How-to-know-if-the-Gtk%3A%3ATreeModel%3A%3AChildren%3A%3Aiterator-is-equal-to-the-selection-tf3369138.html#a9374220
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]