Gtk::TreeSortable::set_sort_func Example?


Does any one know the semantics of the usage of the set_sort_func?

I have a class containing a Glib::RefPtr<Gtk::ListStore> listStore object.
My listStore holds a column of objects of a class in which I have
overloaded the operators < > <= >= == !=

How can I set up a sort function to use for that column?
listStore->set_sort_func(listCols.my_object, ...)
what does the Gtk::TreeSortable::SlotCompare look like?

I could not find any examples...

Thanks very much,

Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.

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