Re: Number of rows in a Gtk::ListStore size?



Use liststore->erase(liststore->children().end())

Andreas Volz wrote:
Am Fri, 22 Feb 2008 19:21:40 -0600 schrieb Jonathon Jongsma:

On Fri, 2008-02-22 at 22:43 +0100, Andreas Volz wrote:
Hello,

How could I find out the number of rows in a Gtk::ListStore for a
Gtk::ComboBoxEntry?

regards
Andreas
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
try liststore->children().size ();

Great. That worked. Now I've the problem to erase the last element in
the ListStore. I've seen no begin() and end() functions like common in
STL for the ListStore to get an iterator for erase(). Any ideas?

regards
Andreas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]