diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-item.c | 6 | ||||
-rw-r--r-- | widgets/table/e-tree.c | 14 | ||||
-rw-r--r-- | widgets/table/e-tree.h | 2 |
3 files changed, 22 insertions, 0 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index ea2dc4297f..1015920e57 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -46,6 +46,7 @@ #include "gal/util/e-i18n.h" #include <string.h> #include <stdlib.h> +#include <atk/atk.h> #define PARENT_OBJECT_TYPE gnome_canvas_item_get_type () @@ -3068,6 +3069,11 @@ eti_class_init (GObjectClass *object_class) NULL, NULL, e_marshal_NONE__OBJECT, G_TYPE_NONE, 1, GTK_TYPE_STYLE); + + atk_registry_set_factory_type (atk_get_default_registry (), + E_TABLE_ITEM_TYPE, + gal_a11y_e_table_item_factory_get_type ()); + } E_MAKE_TYPE (e_table_item, diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 84b5fb2a95..e3fc19052f 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -53,6 +53,7 @@ #include "e-tree.h" #include "gal/util/e-marshal.h" +#include "gal/a11y/e-table/gal-a11y-e-tree-factory.h" #define COLUMN_HEADER_HEIGHT 16 @@ -2154,6 +2155,15 @@ e_tree_get_table_adapter (ETree *et) return et->priv->etta; } +ETableItem * +e_tree_get_item(ETree * et) +{ + g_return_val_if_fail (et != NULL, NULL); + g_return_val_if_fail (E_IS_TREE (et), NULL); + + return et->priv->item; +} + struct _ETreeDragSourceSite { @@ -3309,6 +3319,10 @@ e_tree_class_init (ETreeClass *class) 10, G_PARAM_READABLE)); + atk_registry_set_factory_type (atk_get_default_registry (), + E_TREE_TYPE, + gal_a11y_e_tree_factory_get_type ()); + } E_MAKE_TYPE(e_tree, "ETree", ETree, e_tree_class_init, e_tree_init, PARENT_TYPE) diff --git a/widgets/table/e-tree.h b/widgets/table/e-tree.h index 21a755fb3a..197ef05fef 100644 --- a/widgets/table/e-tree.h +++ b/widgets/table/e-tree.h @@ -35,6 +35,7 @@ #include <gal/e-table/e-table-state.h> #include <gal/e-table/e-tree-model.h> #include <gal/e-table/e-tree-table-adapter.h> +#include <gal/e-table/e-table-item.h> #define E_TREE_USE_TREE_SELECTION @@ -303,6 +304,7 @@ gboolean e_tree_find_next (ETree *et, /* This function is only needed in single_selection_mode. */ void e_tree_right_click_up (ETree *et); +ETableItem * e_tree_get_item(ETree * et); G_END_DECLS |