Re: Custom sort function
- From: Emil Nowak <emiml wp pl>
- To: gtkmm-list gnome org
- Subject: Re: Custom sort function
- Date: Fri, 30 Jun 2006 11:00:42 +0200
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]