comparison 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
comparison
equal deleted inserted replaced
18419:e79da0369a6d 18420:e2b8b17fc62c
48 typedef struct _GntTreeCol GntTreeCol; 48 typedef struct _GntTreeCol GntTreeCol;
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 } GntTreeColumnFlag; 54 } GntTreeColumnFlag;
54 55
55 struct _GntTree 56 struct _GntTree
56 { 57 {
57 GntWidget parent; 58 GntWidget parent;
467 * @see gnt_tree_set_column_width_ratio 468 * @see gnt_tree_set_column_width_ratio
468 */ 469 */
469 void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res); 470 void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res);
470 471
471 /** 472 /**
473 * Set whether data in a column should be considered as binary data, and
474 * not as strings. A column containing binary data will be display empty text.
475 *
476 * @param tree The tree
477 * @param col The index of the column
478 * @param bin @c TRUE if the data for the column is binary
479 */
480 void gnt_tree_set_column_is_binary(GntTree *tree, int col, gboolean bin);
481
482 /**
472 * Set column widths to use when calculating column widths after a tree 483 * Set column widths to use when calculating column widths after a tree
473 * is resized. 484 * is resized.
474 * 485 *
475 * @param tree The tree 486 * @param tree The tree
476 * @param cols Array of widths. The width must have the same number 487 * @param cols Array of widths. The width must have the same number