Gtk.CustomFilter

g GObject.Object GObject.Object Gtk.Filter Gtk.Filter GObject.Object->Gtk.Filter Gtk.CustomFilter Gtk.CustomFilter Gtk.Filter->Gtk.CustomFilter

Subclasses:

None

Methods

Inherited:

Gtk.Filter (3), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (match_func, *user_data)

set_filter_func (match_func, *user_data)

Virtual Methods

Inherited:

Gtk.Filter (2), GObject.Object (7)

Properties

None

Signals

Inherited:

Gtk.Filter (1), GObject.Object (1)

Fields

Inherited:

Gtk.Filter (1), GObject.Object (1)

Class Details

class Gtk.CustomFilter(**kwargs)
Bases:

Gtk.Filter

Abstract:

No

Structure:

Gtk.CustomFilterClass

GtkCustomFilter determines whether to include items with a callback.

classmethod new(match_func, *user_data)[source]
Parameters:
Returns:

a new GtkCustomFilter

Return type:

Gtk.CustomFilter

Creates a new filter using the given match_func to filter items.

If match_func is None, the filter matches all items.

If the filter func changes its filtering behavior, Gtk.Filter.changed() needs to be called.

set_filter_func(match_func, *user_data)[source]
Parameters:

Sets the function used for filtering items.

If match_func is None, 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.