Mercurial > pidgin
diff finch/libgnt/gnttree.h @ 18563:dba4edbde4a7
Patch from Javeed Shaikh to make the search function non-braindamaged.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 19 Jul 2007 21:11:37 +0000 |
parents | 212c2bec5c97 |
children | 36257cac2b11 |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.h Thu Jul 19 08:25:57 2007 +0000 +++ b/finch/libgnt/gnttree.h Thu Jul 19 21:11:37 2007 +0000 @@ -520,10 +520,14 @@ * Set a custom search function. * * @param tree The tree - * @param func The custom search function + * @param func The custom search function. The search function is + * sent the tree itself, the key of a row, the search + * string and the content of row in the search column. + * If the function returns @c TRUE, the row is dislayed, + * otherwise it's not. */ void gnt_tree_set_search_function(GntTree *tree, - gboolean (*func)(GntTree *tree, gpointer key, const char *current)); + gboolean (*func)(GntTree *tree, gpointer key, const char *search, const char *current)); G_END_DECLS