1.42 <GtkCustomFilter>

Class: <GtkCustomFilter>

It derives from <GtkFilter>.

Determines whether to include items with a callback.

Procedures

Procedure: custom-filter:new [match-func] ⇒ %return

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

If match-func is NULL, the filter matches all items.

If the filter func changes its filtering behavior, filter:changed needs to be called.

match-func

Passed, or left out: a procedure, or #f.

function to filter items

See GtkCustomFilterFunc for how it is called.

%return

Returned: a <GtkCustomFilter>.

a new <GtkCustomFilter>

user-data

Not passed: guile-gi supplies it.

user data to pass to match-func

user-destroy

Not passed: guile-gi supplies it.

destroy notify for user-data

See GDestroyNotify for how it is called.

Method: custom-filter:set-filter-func self [match-func]
Method: set-filter-func self [match-func]

Sets the function used for filtering items.

If match-func is NULL, the filter matches all items.

If the filter func changes its filtering behavior, filter:changed needs to be called.

If a previous function was set, its user-destroy will be called.

self

Passed: a <GtkCustomFilter>.

a custom filter

match-func

Passed, or left out: a procedure, or #f.

function to filter items

See GtkCustomFilterFunc for how it is called.

user-data

Not passed: guile-gi supplies it.

user data to pass to match-func

user-destroy

Not passed: guile-gi supplies it.

destroy notify for user-data

See GDestroyNotify for how it is called.