diff 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
line wrap: on
line diff
--- a/finch/libgnt/gnttree.h	Fri Jul 06 06:14:31 2007 +0000
+++ b/finch/libgnt/gnttree.h	Fri Jul 06 21:42:25 2007 +0000
@@ -51,6 +51,7 @@
 	GNT_TREE_COLUMN_INVISIBLE    = 1 << 0,
 	GNT_TREE_COLUMN_FIXED_SIZE   = 1 << 1,
 	GNT_TREE_COLUMN_BINARY_DATA  = 1 << 2,
+	GNT_TREE_COLUMN_RIGHT_ALIGNED = 1 << 3,
 } GntTreeColumnFlag;
 
 struct _GntTree
@@ -481,6 +482,15 @@
 void gnt_tree_set_column_is_binary(GntTree *tree, int col, gboolean bin);
 
 /**
+ * Set whether text in a column should be right-aligned.
+ *
+ * @param tree  The tree
+ * @param col   The index of the column
+ * @param right @c TRUE if the text in the column should be right aligned
+ */
+void gnt_tree_set_column_is_right_aligned(GntTree *tree, int col, gboolean right);
+
+/**
  * Set column widths to use when calculating column widths after a tree
  * is resized.
  *