diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-cell-tree.c | 11 | ||||
-rw-r--r-- | widgets/table/e-cell-tree.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c index cbe896ceda..a0be81e889 100644 --- a/widgets/table/e-cell-tree.c +++ b/widgets/table/e-cell-tree.c @@ -52,6 +52,9 @@ #include "tree-expanded.xpm" #include "tree-unexpanded.xpm" +#include "gal/a11y/e-table/gal-a11y-e-cell-registry.h" +#include "gal/a11y/e-table/gal-a11y-e-cell-tree.h" + #define PARENT_TYPE e_cell_get_type () typedef struct { @@ -70,6 +73,12 @@ static ECellClass *parent_class; #define INDENT_AMOUNT 16 +ECellView * +e_cell_tree_view_get_subcell_view (ECellView *ect) +{ + return ((ECellTreeView *)ect)->subcell_view; +} + static ETreePath e_cell_tree_get_node (ETableModel *table_model, int row) { @@ -828,6 +837,8 @@ e_cell_tree_class_init (GObjectClass *object_class) ecc->get_bg_color = ect_get_bg_color; parent_class = g_type_class_ref (PARENT_TYPE); + + gal_a11y_e_cell_registry_add_cell_type (NULL, E_CELL_TREE_TYPE, gal_a11y_e_cell_tree_new); } E_MAKE_TYPE(e_cell_tree, "ECellTree", ECellTree, e_cell_tree_class_init, NULL, PARENT_TYPE) diff --git a/widgets/table/e-cell-tree.h b/widgets/table/e-cell-tree.h index 13462ee428..dfdd6f0191 100644 --- a/widgets/table/e-cell-tree.h +++ b/widgets/table/e-cell-tree.h @@ -41,6 +41,7 @@ G_BEGIN_DECLS #define E_IS_CELL_TREE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CELL_TREE_TYPE)) #define E_IS_CELL_TREE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_CELL_TREE_TYPE)) + typedef struct { ECell parent; @@ -67,6 +68,7 @@ void e_cell_tree_construct (ECellTree *ect, gboolean draw_lines, ECell *subcell); +ECellView *e_cell_tree_view_get_subcell_view (ECellView *ect); G_END_DECLS |