Class: Gtk::CustomSorter
Instance Method Summary collapse
-
#initialize(sort_func, user_data, user_destroy) ⇒ Gtk::CustomSorter
constructor
Creates a new
GtkSorterthat works by calling sort_func to compare items. -
#set_sort_func(sort_func, user_data, user_destroy) ⇒ nil
Sets (or unsets) the function used for sorting items.
Methods inherited from Sorter
Constructor Details
#initialize(sort_func, user_data, user_destroy) ⇒ Gtk::CustomSorter
Creates a new GtkSorter that works by calling
sort_func to compare items.
If sort_func is nil, all items are considered equal.
Instance Method Details
#set_sort_func(sort_func, user_data, user_destroy) ⇒ nil
Sets (or unsets) the function used for sorting items.
If sort_func is nil, all items are considered equal.
If the sort func changes its sorting behavior, gtk_sorter_changed() needs to be called.
If a previous function was set, its user_destroy will be called now.