diff finch/libgnt/gnttree.h @ 18557:212c2bec5c97

Allow using custom search functions.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 19 Jul 2007 08:25:26 +0000
parents 8838b67b1ea0
children dba4edbde4a7
line wrap: on
line diff
--- a/finch/libgnt/gnttree.h	Tue Jul 17 11:09:03 2007 +0000
+++ b/finch/libgnt/gnttree.h	Thu Jul 19 08:25:26 2007 +0000
@@ -516,6 +516,15 @@
  */
 gboolean gnt_tree_is_searching(GntTree *tree);
 
+/**
+ * Set a custom search function.
+ *
+ * @param tree  The tree
+ * @param func  The custom search function
+ */
+void gnt_tree_set_search_function(GntTree *tree,
+		gboolean (*func)(GntTree *tree, gpointer key, const char *current));
+
 G_END_DECLS
 
 #endif /* GNT_TREE_H */