Mercurial > pidgin.yaz
comparison finch/libgnt/gnttree.h @ 18449:ed17f5530300
Allow showing right-aligned text trees. Right-align the size in the file
selector tree.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 06 Jul 2007 21:42:25 +0000 |
parents | be10fc22d649 |
children | da550279d390 |
comparison
equal
deleted
inserted
replaced
18447:8fc91e437981 | 18449:ed17f5530300 |
---|---|
49 | 49 |
50 typedef enum { | 50 typedef enum { |
51 GNT_TREE_COLUMN_INVISIBLE = 1 << 0, | 51 GNT_TREE_COLUMN_INVISIBLE = 1 << 0, |
52 GNT_TREE_COLUMN_FIXED_SIZE = 1 << 1, | 52 GNT_TREE_COLUMN_FIXED_SIZE = 1 << 1, |
53 GNT_TREE_COLUMN_BINARY_DATA = 1 << 2, | 53 GNT_TREE_COLUMN_BINARY_DATA = 1 << 2, |
54 GNT_TREE_COLUMN_RIGHT_ALIGNED = 1 << 3, | |
54 } GntTreeColumnFlag; | 55 } GntTreeColumnFlag; |
55 | 56 |
56 struct _GntTree | 57 struct _GntTree |
57 { | 58 { |
58 GntWidget parent; | 59 GntWidget parent; |
479 * @param bin @c TRUE if the data for the column is binary | 480 * @param bin @c TRUE if the data for the column is binary |
480 */ | 481 */ |
481 void gnt_tree_set_column_is_binary(GntTree *tree, int col, gboolean bin); | 482 void gnt_tree_set_column_is_binary(GntTree *tree, int col, gboolean bin); |
482 | 483 |
483 /** | 484 /** |
485 * Set whether text in a column should be right-aligned. | |
486 * | |
487 * @param tree The tree | |
488 * @param col The index of the column | |
489 * @param right @c TRUE if the text in the column should be right aligned | |
490 */ | |
491 void gnt_tree_set_column_is_right_aligned(GntTree *tree, int col, gboolean right); | |
492 | |
493 /** | |
484 * Set column widths to use when calculating column widths after a tree | 494 * Set column widths to use when calculating column widths after a tree |
485 * is resized. | 495 * is resized. |
486 * | 496 * |
487 * @param tree The tree | 497 * @param tree The tree |
488 * @param cols Array of widths. The width must have the same number | 498 * @param cols Array of widths. The width must have the same number |