comparison 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
comparison
equal deleted inserted replaced
18533:79e27f0c6f05 18534:ffa46a399f3c
81 GntTreeColumnFlag flags; 81 GntTreeColumnFlag flags;
82 } *columns; /* Would a GList be better? */ 82 } *columns; /* Would a GList be better? */
83 gboolean show_title; 83 gboolean show_title;
84 gboolean show_separator; /* Whether to show column separators */ 84 gboolean show_separator; /* Whether to show column separators */
85 85
86 GString *search; 86 GntTreePriv *priv;
87 int search_timeout;
88
89 GCompareFunc compare;
90 int lastvisible;
91 }; 87 };
92 88
93 struct _GntTreeClass 89 struct _GntTreeClass
94 { 90 {
95 GntWidgetClass parent; 91 GntWidgetClass parent;
502 * @see gnt_tree_set_col_width 498 * @see gnt_tree_set_col_width
503 * @see gnt_tree_set_column_resizable 499 * @see gnt_tree_set_column_resizable
504 */ 500 */
505 void gnt_tree_set_column_width_ratio(GntTree *tree, int cols[]); 501 void gnt_tree_set_column_width_ratio(GntTree *tree, int cols[]);
506 502
503 /**
504 * Set the column to use for typeahead searching.
505 *
506 * @param tree The tree
507 * @param col The index of the column
508 */
509 void gnt_tree_set_search_column(GntTree *tree, int col);
510
507 G_END_DECLS 511 G_END_DECLS
508 512
509 #endif /* GNT_TREE_H */ 513 #endif /* GNT_TREE_H */