From ab13d05f6e1b47523f2fed817c1963f289cee2d0 Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Fri, 4 Feb 2005 04:50:50 +0000 Subject: Some code clean work. 2005-01-27 Harry Lu 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 --- widgets/text/e-text.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'widgets') diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 5c465b67a5..b3ad50b868 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -68,7 +68,7 @@ #include #include -#include "gal/a11y/e-text/gal-a11y-e-text-factory.h" +#include "gal/a11y/e-text/gal-a11y-e-text.h" #define PARENT_TYPE (gnome_canvas_item_get_type()) @@ -3700,10 +3700,7 @@ e_text_class_init (ETextClass *klass) if (!clipboard_atom) clipboard_atom = gdk_atom_intern ("CLIPBOARD", FALSE); - atk_registry_set_factory_type (atk_get_default_registry (), - E_TYPE_TEXT, - gal_a11y_e_text_factory_get_type ()); - + gal_a11y_e_text_init (); } /* Object initialization function for the text item */ -- cgit