Re: Custom sort function



On 2006-06-30 (Fri), at 07:23:39 "Surya Kiran Gullapalli" wrote:

> Hi,
> I'm using a treeview with list store as its model. I want to sort some of
> the columns in the model. But by the design of my code, i cannot use the
> default sort functions. When ever i click on the header of the column, i
> want custom sort function (written for my code) to be called. How can i do
> that??
As you can see Gtk::ListStore implements Gtk::TreeSortable, so you can use 
Gtk::TreeSortable::set_sort_func() method to add custom search function.



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