Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
18561:4de7e6c4e5be | 18563:dba4edbde4a7 |
---|---|
518 | 518 |
519 /** | 519 /** |
520 * Set a custom search function. | 520 * Set a custom search function. |
521 * | 521 * |
522 * @param tree The tree | 522 * @param tree The tree |
523 * @param func The custom search function | 523 * @param func The custom search function. The search function is |
524 * sent the tree itself, the key of a row, the search | |
525 * string and the content of row in the search column. | |
526 * If the function returns @c TRUE, the row is dislayed, | |
527 * otherwise it's not. | |
524 */ | 528 */ |
525 void gnt_tree_set_search_function(GntTree *tree, | 529 void gnt_tree_set_search_function(GntTree *tree, |
526 gboolean (*func)(GntTree *tree, gpointer key, const char *current)); | 530 gboolean (*func)(GntTree *tree, gpointer key, const char *search, const char *current)); |
527 | 531 |
528 G_END_DECLS | 532 G_END_DECLS |
529 | 533 |
530 #endif /* GNT_TREE_H */ | 534 #endif /* GNT_TREE_H */ |