diff finch/libgnt/gnttree.c @ 18348:1f9db757efc2

Oops. I missed this. This allows setting tree-column titles one by one.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 29 Jun 2007 04:05:49 +0000
parents 99969affedf5
children 9a0f99ea664d
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c	Fri Jun 29 01:52:09 2007 +0000
+++ b/finch/libgnt/gnttree.c	Fri Jun 29 04:05:49 2007 +0000
@@ -1526,6 +1526,12 @@
 	tree->columns[col].width = width;
 }
 
+void gnt_tree_set_column_title(GntTree *tree, int index, const char *title)
+{
+	g_free(tree->columns[index].title);
+	tree->columns[index].title = g_strdup(title);
+}
+
 void gnt_tree_set_column_titles(GntTree *tree, ...)
 {
 	int i;