Mercurial > pidgin
diff finch/libgnt/gnttree.h @ 18420:e2b8b17fc62c
Allow storing non-string binary data in tree columns.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 03 Jul 2007 04:47:24 +0000 |
parents | e79da0369a6d |
children | be10fc22d649 |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.h Tue Jul 03 01:50:16 2007 +0000 +++ b/finch/libgnt/gnttree.h Tue Jul 03 04:47:24 2007 +0000 @@ -50,6 +50,7 @@ typedef enum { GNT_TREE_COLUMN_INVISIBLE = 1 << 0, GNT_TREE_COLUMN_FIXED_SIZE = 1 << 1, + GNT_TREE_COLUMN_BINARY_DATA = 1 << 2, } GntTreeColumnFlag; struct _GntTree @@ -469,6 +470,16 @@ void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res); /** + * Set whether data in a column should be considered as binary data, and + * not as strings. A column containing binary data will be display empty text. + * + * @param tree The tree + * @param col The index of the column + * @param bin @c TRUE if the data for the column is binary + */ +void gnt_tree_set_column_is_binary(GntTree *tree, int col, gboolean bin); + +/** * Set column widths to use when calculating column widths after a tree * is resized. *