diff options
author | Yuedong Du <yuedong.du@sun.com> | 2003-10-11 11:00:59 +0800 |
---|---|---|
committer | Yuedong Du <york@src.gnome.org> | 2003-10-11 11:00:59 +0800 |
commit | 5bbde1a63071c17b11f01132030ac15a8e803755 (patch) | |
tree | a5a191f48cf597bc82b766f4e2a33b25fcc5386e /widgets/table | |
parent | 49b3179c746b0157119d4dcd750e1338f65c6438 (diff) | |
download | gsoc2013-evolution-5bbde1a63071c17b11f01132030ac15a8e803755.tar gsoc2013-evolution-5bbde1a63071c17b11f01132030ac15a8e803755.tar.gz gsoc2013-evolution-5bbde1a63071c17b11f01132030ac15a8e803755.tar.bz2 gsoc2013-evolution-5bbde1a63071c17b11f01132030ac15a8e803755.tar.lz gsoc2013-evolution-5bbde1a63071c17b11f01132030ac15a8e803755.tar.xz gsoc2013-evolution-5bbde1a63071c17b11f01132030ac15a8e803755.tar.zst gsoc2013-evolution-5bbde1a63071c17b11f01132030ac15a8e803755.zip |
add new files. set the right role. new file.
2003-10-11 Yuedong Du <yuedong.du@sun.com>
* gal/a11y/e-table/Makefile.am: add new files.
* gal/a11y/e-table/gal-a11y-e-cell.c: (gal_a11y_e_cell_construct):
set the right role.
* gal/a11y/e-table/gal-a11y-e-table-item-factory.c: new file.
(gal_a11y_e_table_item_factory_get_accessible_type),
(gal_a11y_e_table_item_factory_create_accessible),
(gal_a11y_e_table_item_factory_class_init),
(gal_a11y_e_table_item_factory_init),
(gal_a11y_e_table_item_factory_get_type): factory for the table item
a11y object. in create_accessible, we judge the type of widget
then set correct role.
* gal/a11y/e-table/gal-a11y-e-table-item-factory.h: ditto.
* gal/a11y/e-table/gal-a11y-e-tree-factory.c: new file.
(gal_a11y_e_tree_factory_get_accessible_type),
(gal_a11y_e_tree_factory_create_accessible),
(gal_a11y_e_tree_factory_class_init),
(gal_a11y_e_tree_factory_init), (gal_a11y_e_tree_factory_get_type):
factory for a11y object of etree. Mostly copyed from
gal-a11y-e-table-factory.c.
* gal/a11y/e-table/gal-a11y-e-tree-factory.h: ditto
* gal/a11y/e-table/gal-a11y-e-tree.c: (init_child_item),
(et_ref_accessible_at_point), (et_get_n_children), (et_ref_child),
(et_class_init), (et_atk_component_iface_init), (et_init),
(gal_a11y_e_tree_get_type), (gal_a11y_e_tree_new):a11y object for
etree object, mostly copied from gal-a11y-e-table.c. init_child_item
set correct role for the table item.
* gal/a11y/e-table/gal-a11y-e-tree.h: ditto.
* gal/e-table/e-table-item.c: (eti_class_init): register factory
for table item a11y object.
* gal/e-table/e-tree.c: (e_tree_get_item), (e_tree_class_init):
add new access fuction to get the table item of etree.
* gal/e-table/e-tree.h: ditto
svn path=/trunk/; revision=22867
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 |