Method

BirbCustomFilterset_filter_func

since: 0.3

Declaration [src]

void
birb_custom_filter_set_filter_func (
  BirbCustomFilter* filter,
  BirbCustomFilterFunc match_func,
  gpointer data,
  GDestroyNotify destroy_notify
)

Description [src]

Sets a new matching function for filter.

If match_func is NULL, the filter will match all items.

If a previous function was set, its %destroy_notify will be called now.

Available since: 0.3

Parameters

match_func

Type: BirbCustomFilterFunc

The new function used for matching.

The argument can be NULL.
data

Type: gpointer

User data to pass to match_func.

The argument can be NULL.
The data is owned by the caller of the function.
destroy_notify

Type: GDestroyNotify

A destroy notify for data.

The argument can be NULL.