Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gal/ChangeLog,v
retrieving revision 1.798
diff -u -r1.798 ChangeLog
--- ChangeLog	5 Aug 2003 06:29:32 -0000	1.798
+++ ChangeLog	11 Aug 2003 09:18:34 -0000
@@ -1,3 +1,13 @@
+2003-08-11  Tim Wo  <tim.wo@sun.com>
+
+	* gal/a11y/e-text/gal-a11y-e-text-factory.h:
+	GalA11yETextFactory should inherit from AtkObjectFactory not
+	AtkObject. (#47097).
+	* gal/a11y/e-text/gal-a11y-e-text.c (et_class_init): 
+	Set value for "component_parent_iface". (#47097)
+	* gal/e-text/e-text.c (e_text_class_init):
+	Added registration code for GalA11yETextFactory. (#47097)
+
 2003-08-05  Gilbert Fang  <gilbert.fang@sun.com>
 
 	* gal/a11y/Makefile.am: eliminate -no-undefined option.(#47322)
Index: gal/a11y/e-text/gal-a11y-e-text-factory.h
===================================================================
RCS file: /cvs/gnome/gal/gal/a11y/e-text/gal-a11y-e-text-factory.h,v
retrieving revision 1.1
diff -u -r1.1 gal-a11y-e-text-factory.h
--- gal/a11y/e-text/gal-a11y-e-text-factory.h	30 Nov 2002 07:54:16 -0000	1.1
+++ gal/a11y/e-text/gal-a11y-e-text-factory.h	11 Aug 2003 09:18:35 -0000
@@ -22,11 +22,11 @@
 typedef struct _GalA11yETextFactoryClass GalA11yETextFactoryClass;
 
 struct _GalA11yETextFactory {
-	AtkObject object;
+	AtkObjectFactory object;
 };
 
 struct _GalA11yETextFactoryClass {
-	AtkObjectClass parent_class;
+	AtkObjectFactoryClass parent_class;
 };
 
 
Index: gal/a11y/e-text/gal-a11y-e-text.c
===================================================================
RCS file: /cvs/gnome/gal/gal/a11y/e-text/gal-a11y-e-text.c,v
retrieving revision 1.1
diff -u -r1.1 gal-a11y-e-text.c
--- gal/a11y/e-text/gal-a11y-e-text.c	30 Nov 2002 07:54:16 -0000	1.1
+++ gal/a11y/e-text/gal-a11y-e-text.c	11 Aug 2003 09:18:36 -0000
@@ -2,6 +2,7 @@
 /*
  * Authors: 
  *   Christopher James Lahey <clahey@ximian.com>
+ *   Tim Wo <tim.wo@sun.com>
  *
  * Copyright (C) 2002 Ximian, Inc.
  */
@@ -452,6 +453,8 @@
 
 	parent_class                          = g_type_class_ref (PARENT_TYPE);
 
+	component_parent_iface                = g_type_interface_peek(parent_class, ATK_TYPE_COMPONENT);
+	
 	object_class->dispose                 = et_dispose;
 }
 
Index: gal/e-text/e-text.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-text/e-text.c,v
retrieving revision 1.145
diff -u -r1.145 e-text.c
--- gal/e-text/e-text.c	14 May 2003 00:42:36 -0000	1.145
+++ gal/e-text/e-text.c	11 Aug 2003 09:18:43 -0000
@@ -66,6 +66,9 @@
 #include <libart_lgpl/art_rgb.h>
 #include <libart_lgpl/art_rgb_bitmap_affine.h>
 
+#include <atk/atk.h>
+#include "gal/a11y/e-text/gal-a11y-e-text-factory.h"
+
 #define PARENT_TYPE (gnome_canvas_item_get_type())
 
 #define BORDER_INDENT 3
@@ -3550,6 +3553,11 @@
 
 	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 ());
+
 }
 
 /* Object initialization function for the text item */
