aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--a11y/e-text/gal-a11y-e-text-factory.h4
-rw-r--r--a11y/e-text/gal-a11y-e-text.c2
-rw-r--r--widgets/text/e-text.c8
3 files changed, 12 insertions, 2 deletions
diff --git a/a11y/e-text/gal-a11y-e-text-factory.h b/a11y/e-text/gal-a11y-e-text-factory.h
index 2b945dbd94..56a8d29ab9 100644
--- a/a11y/e-text/gal-a11y-e-text-factory.h
+++ b/a11y/e-text/gal-a11y-e-text-factory.h
@@ -22,11 +22,11 @@ typedef struct _GalA11yETextFactory GalA11yETextFactory;
typedef struct _GalA11yETextFactoryClass GalA11yETextFactoryClass;
struct _GalA11yETextFactory {
- AtkObject object;
+ AtkObjectFactory object;
};
struct _GalA11yETextFactoryClass {
- AtkObjectClass parent_class;
+ AtkObjectFactoryClass parent_class;
};
diff --git a/a11y/e-text/gal-a11y-e-text.c b/a11y/e-text/gal-a11y-e-text.c
index ce32e86fc2..1ee67989ca 100644
--- a/a11y/e-text/gal-a11y-e-text.c
+++ b/a11y/e-text/gal-a11y-e-text.c
@@ -452,6 +452,8 @@ et_class_init (GalA11yETextClass *klass)
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;
}
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 668a7315da..bda5f46eac 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -67,6 +67,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
@@ -3594,6 +3597,11 @@ 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 ());
+
}
/* Object initialization function for the text item */