Re: problem with Gtk::TreeView::Row.set_value() - SOLVED
- From: Alexander <rope-walker yandex ru>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: problem with Gtk::TreeView::Row.set_value() - SOLVED
- Date: Sat, 14 Jan 2006 19:23:38 +0200
On Sat, 14 Jan 2006 19:02:03 +0200, Alexander <rope-walker yandex ru>
wrote:
I have such code:
...
std::list<double>::iterator eps_rez = ...->begin();
int eps_count = 17;
Gtk::TreeView::Column *column;
Gtk::TreeModel::iterator iter;
Gtk::TreeModel::Row row;
int i = 2;
while (column = treeview_Results_table.get_column(++i))
{
iter = refptrliststore_Results_table->children()[1];
row = *(iter);
row->set_value(i, *++eps_rez);
/*after this i have error:
Gtk-CRITICAL **: gtk_list_store_set_value: assertion `VALID_ITER (iter,
list_store)' failed
*/
for (int j = 1; j <= 4; ++j)
{
++iter;
}
for (int j = 2; j <= eps_count; ++j)
{
row = *(++iter);
row->set_value(i, *++eps_rez);
}
}
How to solve that problem?
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]