| 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 |