Re: Number of rows in a Gtk::ListStore size?
- From: Andreas Volz <lists brachttal net>
- To: gtkmm-list gnome org
- Subject: Re: Number of rows in a Gtk::ListStore size?
- Date: Sun, 24 Feb 2008 16:50:34 +0100
Am Sat, 23 Feb 2008 12:53:53 +0100 schrieb Simon Fuhrmann:
> Use liststore->erase(liststore->children().end())
The hint was good, but I got a segfault. It worked that way:
Gtk::TreeIter treeIt = m_refListModel->children ().end ();
--treeIt;
m_refListModel->erase (treeIt);
The last element is the one before end() as in the STL containers. :-)
This may be dangerous, but works because I'm sure that list size is
never zero.
regards
Andreas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]