Re: [gtkmm] iterating through the contents of a tree
- From: "Andreas B. Thun" <abt gmx de>
- Cc: Bevis Peters <bevis anvil com>, gtkmm-list gnome org
- Subject: Re: [gtkmm] iterating through the contents of a tree
- Date: Thu, 08 Jan 2004 16:07:47 +0100
To be more precise: The problem is, I cannot see the selection.
The row is not highlighted:
Does a list view has children?
void ConstraintTable::onNextClicked()
{
cout << "START ConstraintTable::onNextClicked()" << endl;
typedef Gtk::TreeModel::Children type_children;
type_children children = m_list_store_ref->children();
for(type_children::iterator iter = children.begin(); iter != children.end(); ++iter)
{
// is this my next row?
Gtk::TreeModel::Row row = *iter;
if(row)
m_tree_sel_ref->select(row);
}
cout << "END ConstraintTable::onNextClicked()" << endl;
}
Same here. I canīt figure out how to iterate trough a tree like this
starting
at the selected row (including parents!) to select the following line.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]