TreeViewSearchEqualFunc (
  GtkTreeModel* model,
  int column,
  const char* key,
  GtkTreeIter* iter,
  gpointer search_data


A function used for checking whether a row in model matches a search key string entered by the user. Note the return value is reversed from what you would normally expect, though it has some similarity to strcmp() returning 0 for equal strings.


model GtkTreeModel

the GtkTreeModel being searched

 Ownership is not transferred
column int

the search column set by gtk_tree_view_set_search_column()

key const char*

the key string to compare with

 Ownership is not transferred
 The string is a NUL terminated UTF-8 string
iter GtkTreeIter

a GtkTreeIter pointing the row of model that should be compared with key.

 Ownership is not transferred
search_data gpointer

user data from gtk_tree_view_set_search_equal_func()

Return value

Returns: gboolean

FALSE if the row matches, TRUE otherwise.