comparison 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
comparison
equal deleted inserted replaced
18347:a90f9a0b90c8 18348:1f9db757efc2
1524 g_return_if_fail(col < tree->ncol); 1524 g_return_if_fail(col < tree->ncol);
1525 1525
1526 tree->columns[col].width = width; 1526 tree->columns[col].width = width;
1527 } 1527 }
1528 1528
1529 void gnt_tree_set_column_title(GntTree *tree, int index, const char *title)
1530 {
1531 g_free(tree->columns[index].title);
1532 tree->columns[index].title = g_strdup(title);
1533 }
1534
1529 void gnt_tree_set_column_titles(GntTree *tree, ...) 1535 void gnt_tree_set_column_titles(GntTree *tree, ...)
1530 { 1536 {
1531 int i; 1537 int i;
1532 va_list args; 1538 va_list args;
1533 1539