Class: Gtk::CustomFilter
Instance Method Summary collapse
-
#initialize(match_func, user_data, user_destroy) ⇒ Gtk::CustomFilter
constructor
Creates a new filter using the given match_func to filter items.
-
#set_filter_func(match_func, user_data, user_destroy) ⇒ nil
Sets the function used for filtering items.
Methods inherited from Filter
Constructor Details
#initialize(match_func, user_data, user_destroy) ⇒ Gtk::CustomFilter
Creates a new filter using the given match_func to filter items.
If match_func is nil, the filter matches all items.
If the filter func changes its filtering behavior, gtk_filter_changed() needs to be called.
Instance Method Details
#set_filter_func(match_func, user_data, user_destroy) ⇒ nil
Sets the function used for filtering items.
If match_func is nil, the filter matches all items.
If the filter func changes its filtering behavior, gtk_filter_changed() needs to be called.
If a previous function was set, its user_destroy will be called now.