aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group.h
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/e-table-group.h')
-rw-r--r--widgets/e-table/e-table-group.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-group.h b/widgets/e-table/e-table-group.h
new file mode 100644
index 0000000000..ab79d317e9
--- /dev/null
+++ b/widgets/e-table/e-table-group.h
@@ -0,0 +1,23 @@
+#ifndef _E_TABLE_TREE_H_
+#define _E_TABLE_TREE_H_
+
+typedef struct {
+ char *title;
+
+ union {
+ ETableModel *table;
+ GSList *children;
+ } u;
+
+ guint expanded :1;
+ guint is_leaf :1;
+} ETableGroup;
+
+ETableGroup *e_table_group_new (const char *title, ETableModel *table);
+ETableGroup *e_table_group_new_leaf (const char *title);
+void e_table_group_destroy (ETableGroup *etg);
+
+int e_table_group_size (ETableGroup *egroup);
+void e_table_group_append_child (ETableGroup *etg, ETableGroup *child)
+
+#endif /* _E_TABLE_TREE_H_ */