aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/e-table/gal-a11y-e-table-click-to-add.c
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2005-02-04 12:50:50 +0800
committerHarry Lu <haip@src.gnome.org>2005-02-04 12:50:50 +0800
commitab13d05f6e1b47523f2fed817c1963f289cee2d0 (patch)
tree00a530efd23428fe1003a452e2605e630dcd5aba /a11y/e-table/gal-a11y-e-table-click-to-add.c
parent8b7b24623a18845166b69630d0d7148fda2a09b1 (diff)
downloadgsoc2013-evolution-ab13d05f6e1b47523f2fed817c1963f289cee2d0.tar
gsoc2013-evolution-ab13d05f6e1b47523f2fed817c1963f289cee2d0.tar.gz
gsoc2013-evolution-ab13d05f6e1b47523f2fed817c1963f289cee2d0.tar.bz2
gsoc2013-evolution-ab13d05f6e1b47523f2fed817c1963f289cee2d0.tar.lz
gsoc2013-evolution-ab13d05f6e1b47523f2fed817c1963f289cee2d0.tar.xz
gsoc2013-evolution-ab13d05f6e1b47523f2fed817c1963f289cee2d0.tar.zst
gsoc2013-evolution-ab13d05f6e1b47523f2fed817c1963f289cee2d0.zip
Some code clean work.
2005-01-27 Harry Lu <harry.lu@sun.com> Some code clean work. * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c: (gal_a11y_e_table_click_to_add_init): new function to register type only when a11y is enabled. * gal/a11y/e-table/gal-a11y-e-table-click-to-add.h: * gal/a11y/e-table/gal-a11y-e-table-item.c: (gal_a11y_e_table_item_init): ditto. * gal/a11y/e-table/gal-a11y-e-table.c: (gal_a11y_e_table_init): ditto. * gal/a11y/e-table/gal-a11y-e-table.h: * gal/a11y/e-table/gal-a11y-e-tree.c: (gal_a11y_e_tree_init): ditto. * gal/a11y/e-table/gal-a11y-e-tree.h: * gal/a11y/e-text/gal-a11y-e-text.c: (gal_a11y_e_text_init): ditto. * gal/a11y/e-text/gal-a11y-e-text.h: * gal/a11y/factory.c: useless file removed. * gal/a11y/init.c: useless file removed. * gal/e-text/e-text.c: (e_text_class_init): move a11y registry call to a11y code. svn path=/trunk/; revision=28702
Diffstat (limited to 'a11y/e-table/gal-a11y-e-table-click-to-add.c')
-rw-r--r--a11y/e-table/gal-a11y-e-table-click-to-add.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/a11y/e-table/gal-a11y-e-table-click-to-add.c b/a11y/e-table/gal-a11y-e-table-click-to-add.c
index c7c84d9deb..da4933e647 100644
--- a/a11y/e-table/gal-a11y-e-table-click-to-add.c
+++ b/a11y/e-table/gal-a11y-e-table-click-to-add.c
@@ -8,6 +8,7 @@
#include <config.h>
#include "gal-a11y-util.h"
#include "gal-a11y-e-table-click-to-add.h"
+#include "gal-a11y-e-table-click-to-add-factory.h"
#include <gal/e-table/e-table-group.h>
#include <gal/e-table/e-table-group-leaf.h>
#include <gal/e-table/e-table-click-to-add.h>
@@ -313,3 +314,14 @@ gal_a11y_e_table_click_to_add_new (GObject *widget)
return ATK_OBJECT (a11y);
}
+
+void
+gal_a11y_e_table_click_to_add_init (void)
+{
+ if (atk_get_root ())
+ atk_registry_set_factory_type (atk_get_default_registry (),
+ E_TABLE_CLICK_TO_ADD_TYPE,
+ gal_a11y_e_table_click_to_add_factory_get_type ());
+
+}
+