diff options
Diffstat (limited to 'widgets/table/e-tree-simple.h')
-rw-r--r-- | widgets/table/e-tree-simple.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/widgets/table/e-tree-simple.h b/widgets/table/e-tree-simple.h index edda53e82d..46d910c39f 100644 --- a/widgets/table/e-tree-simple.h +++ b/widgets/table/e-tree-simple.h @@ -4,6 +4,7 @@ #define _E_TREE_SIMPLE_H_ #include "e-tree-model.h" +#include "e-table-simple.h" #define E_TREE_SIMPLE_TYPE (e_tree_simple_get_type ()) #define E_TREE_SIMPLE(o) (GTK_CHECK_CAST ((o), E_TREE_SIMPLE_TYPE, ETreeSimple)) @@ -20,6 +21,15 @@ typedef gboolean (*ETreeSimpleIsEditableFn) (ETreeModel *etree, ETreePath *pat typedef struct { ETreeModel parent; + /* Table methods */ + ETableSimpleColumnCountFn col_count; + ETableSimpleDuplicateValueFn duplicate_value; + ETableSimpleFreeValueFn free_value; + ETableSimpleInitializeValueFn initialize_value; + ETableSimpleValueIsEmptyFn value_is_empty; + ETableSimpleValueToStringFn value_to_string; + + /* Tree methods */ ETreeSimpleIconAtFn icon_at; ETreeSimpleValueAtFn value_at; ETreeSimpleSetValueAtFn set_value_at; @@ -34,10 +44,16 @@ typedef struct { GtkType e_tree_simple_get_type (void); -ETreeModel *e_tree_simple_new (ETreeSimpleIconAtFn icon_at, - ETreeSimpleValueAtFn value_at, - ETreeSimpleSetValueAtFn set_value_at, - ETreeSimpleIsEditableFn is_editable, - gpointer model_data); +ETreeModel *e_tree_simple_new (ETableSimpleColumnCountFn col_count, + ETableSimpleDuplicateValueFn duplicate_value, + ETableSimpleFreeValueFn free_value, + ETableSimpleInitializeValueFn initialize_value, + ETableSimpleValueIsEmptyFn value_is_empty, + ETableSimpleValueToStringFn value_to_string, + ETreeSimpleIconAtFn icon_at, + ETreeSimpleValueAtFn value_at, + ETreeSimpleSetValueAtFn set_value_at, + ETreeSimpleIsEditableFn is_editable, + gpointer model_data); #endif /* _E_TREE_SIMPLE_H_ */ |