diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-09-09 00:51:21 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-09-09 00:51:21 +0800 |
commit | 7816388a7ab06deb31f269c0f716eea5a62c9666 (patch) | |
tree | 4a243e55764d7666b279f10c78fbdb0f28783081 /widgets/table/e-tree-simple.h | |
parent | a0ab37d85aeb661516a1afa1e1cf699e194f4a8d (diff) | |
download | gsoc2013-evolution-7816388a7ab06deb31f269c0f716eea5a62c9666.tar gsoc2013-evolution-7816388a7ab06deb31f269c0f716eea5a62c9666.tar.gz gsoc2013-evolution-7816388a7ab06deb31f269c0f716eea5a62c9666.tar.bz2 gsoc2013-evolution-7816388a7ab06deb31f269c0f716eea5a62c9666.tar.lz gsoc2013-evolution-7816388a7ab06deb31f269c0f716eea5a62c9666.tar.xz gsoc2013-evolution-7816388a7ab06deb31f269c0f716eea5a62c9666.tar.zst gsoc2013-evolution-7816388a7ab06deb31f269c0f716eea5a62c9666.zip |
Added base ETableModel functions.
2000-09-08 Christopher James Lahey <clahey@helixcode.com>
* e-tree-example-1.c: Added base ETableModel functions.
* e-tree-example-2.c: Added base ETableModel functions. Made it
never return NULL as a string, instead return "".
* e-tree-simple.c, e-tree-simple.h: Require base ETableModel
functions.
svn path=/trunk/; revision=5266
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_ */ |