Function

GntTreeSearchFunc

Declaration

gboolean
(* GntTreeSearchFunc) (
  GntTree* tree,
  gpointer key,
  const gchar* search,
  const gchar* current
)

Description [src]

A custom tree search function.

Parameters

tree

Type: GntTree

The tree being searched.

The data is owned by the caller of the function.
key

Type: gpointer

The key of a row.

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

Type: const gchar*

The search string.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
current

Type: const gchar*

The content of row in the search column.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

If TRUE, the row should be displayed, otherwise it’s not.