AW: [gtkmm] Using TreeModelSort



Hi Markus,

Assuming my_columns is defined and my_store is a standard Gtk::ListStore (or
Gtk::TreeStore),
just do

  my_store = Gtk::ListStore::create(my_columns);
  my_store->set_sort_column_id(my_columns.whatever, Gtk::SORT_ASCENDING);

to get it sorted.

Hope that helps,

	Elke

> -----Ursprüngliche Nachricht-----
> Von: Markus Gerwinski [mailto:markus gerwinski de]
> Gesendet: Dienstag, 26. August 2003 12:03
> An: gtkmm-list gnome org
> Betreff: [gtkmm] Using TreeModelSort
> 
> 
> Hi folks,
> 
> are there any docs or examples on the usage of TreeModelSort 
> resp. TreeSortable
> available?
> 
> In the reference docs I didn't find anything besides the 
> class reference. Maybe
> I didn't search the right way, but I really tried.
> 
> Thanks,
> 
>   Markus
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 



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