aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/e-table/gal-a11y-e-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'a11y/e-table/gal-a11y-e-table.c')
-rw-r--r--a11y/e-table/gal-a11y-e-table.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/a11y/e-table/gal-a11y-e-table.c b/a11y/e-table/gal-a11y-e-table.c
index 16fef97c9d..b49a8a653a 100644
--- a/a11y/e-table/gal-a11y-e-table.c
+++ b/a11y/e-table/gal-a11y-e-table.c
@@ -8,6 +8,7 @@
#include <config.h>
#include "gal-a11y-e-table.h"
+#include "gal-a11y-e-table-factory.h"
#include "gal-a11y-e-table-item.h"
#include "gal-a11y-util.h"
#include <gal/e-table/e-table.h>
@@ -64,19 +65,6 @@ eti_get_accessible (ETableItem *eti, AtkObject *parent)
return a11y;
}
-static ETableItem *
-find_table_item (ETable *table)
-{
- if (e_table_model_row_count(table->model) < 1)
- return NULL;
- else {
- if (table->group)
- return find_first_table_item (table->group);
- }
-
- return NULL;
-}
-
static gboolean
init_child_item (GalA11yETable *a11y)
{
@@ -292,3 +280,14 @@ gal_a11y_e_table_new (GObject *widget)
return ATK_OBJECT (a11y);
}
+
+void
+gal_a11y_e_table_init (void)
+{
+ if (atk_get_root ())
+ atk_registry_set_factory_type (atk_get_default_registry (),
+ E_TABLE_TYPE,
+ gal_a11y_e_table_factory_get_type ());
+
+}
+