aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorTim Wo <tim.wo@sun.com>2003-11-12 13:12:04 +0800
committerGilbert Fang <gilbertfang@src.gnome.org>2003-11-12 13:12:04 +0800
commit2ba68734fdf438ab3c0e519c03990ad388186a71 (patch)
tree515db92c620a3c27aa8ab088af438eb9479f751a /widgets
parent325bccff550473ec2e4fd223e50242ae75ca1e4d (diff)
downloadgsoc2013-evolution-2ba68734fdf438ab3c0e519c03990ad388186a71.tar.gz
gsoc2013-evolution-2ba68734fdf438ab3c0e519c03990ad388186a71.tar.zst
gsoc2013-evolution-2ba68734fdf438ab3c0e519c03990ad388186a71.zip
new files (gal-a11y-e-cell-tree.c/h) added adding 2 new functions to add
2003-11-03 Tim Wo <tim.wo@sun.com> * gal/a11y/e-table/Makefile.am: new files (gal-a11y-e-cell-tree.c/h) added * gal/a11y/e-table/gal-a11y-e-cell.h: adding 2 new functions to add or remove atk states * gal/a11y/e-table/gal-a11y-e-cell.c (eti_dispose): unref the state_set (eti_ref_state_set): new function (eti_class_init): create and initialize the state_set (eti_init): override the "ref_state_set" function in AtkObjectClass with "eti_ref_state_set" (gal_a11y_e_cell_add_state): adding a return value (gal_a11y_e_cell_remove_state): new function * gal/e-table/e-cell-tree.c: (e_cell_tree_class_init): register GalA11yECellText as the a11y implementation for ECellText. (e_cell_tree_view_get_subcell_view): new function to retrieve the cell_view of subcell in ECellTree * gal/e-table/e-cell-tree.h: adding 1 new function to retrieve the cell_view of subcell in ECellTree * gal/a11y/e-table/gal-a11y-e-cell-tree.c: new file. A11y implementation for ECellTree * gal/a11y/e-table/gal-a11y-e-cell-tree.h: new file. A11y implementation for ECellTree svn path=/trunk/; revision=23296
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell-tree.c11
-rw-r--r--widgets/table/e-cell-tree.h2
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