diff finch/libgnt/gnttree.h @ 15970:790d1d003825

Allow making some columns invisible.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 30 Mar 2007 05:32:40 +0000
parents f00f2e283ffb
children 8410511f4dbb
line wrap: on
line diff
--- a/finch/libgnt/gnttree.h	Thu Mar 29 20:30:46 2007 +0000
+++ b/finch/libgnt/gnttree.h	Fri Mar 30 05:32:40 2007 +0000
@@ -48,6 +48,7 @@
 	{
 		int width;
 		char *title;
+		gboolean invisible;
 	} *columns;             /* Would a GList be better? */
 	gboolean show_title;
 	gboolean show_separator; /* Whether to show column separators */
@@ -140,6 +141,10 @@
 
 void gnt_tree_set_hash_fns(GntTree *tree, gpointer hash, gpointer eq, gpointer kd);
 
+/* This can be useful when, for example, we want to store some data
+ * which we don't want/need to display. */
+void gnt_tree_set_column_visible(GntTree *tree, int col, gboolean vis);
+
 G_END_DECLS
 
 /* The following functions should NOT be used by applications. */