Function

GntTreeSearchFunc

Declaration

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

Description [src]

A custom tree search function.

Parameters

tree GntTree
 

The tree being searched.

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

The key of a row.

 The argument can be NULL.
 The data is owned by the caller of the function.
search 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 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

Returns: gboolean
 

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