Mercurial > pidgin
diff finch/libgnt/gnttree.h @ 18534:ffa46a399f3c
Allow setting the search column in a tree to use for typeahead searching.
Hide some of the internals if GntTree.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 14 Jul 2007 02:15:42 +0000 |
parents | da550279d390 |
children | fad459189cc5 |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.h Sat Jul 14 01:28:24 2007 +0000 +++ b/finch/libgnt/gnttree.h Sat Jul 14 02:15:42 2007 +0000 @@ -83,11 +83,7 @@ gboolean show_title; gboolean show_separator; /* Whether to show column separators */ - GString *search; - int search_timeout; - - GCompareFunc compare; - int lastvisible; + GntTreePriv *priv; }; struct _GntTreeClass @@ -504,6 +500,14 @@ */ void gnt_tree_set_column_width_ratio(GntTree *tree, int cols[]); +/** + * Set the column to use for typeahead searching. + * + * @param tree The tree + * @param col The index of the column + */ +void gnt_tree_set_search_column(GntTree *tree, int col); + G_END_DECLS #endif /* GNT_TREE_H */