diff options
Diffstat (limited to 'a11y/e-text')
-rw-r--r-- | a11y/e-text/gal-a11y-e-text.c | 12 | ||||
-rw-r--r-- | a11y/e-text/gal-a11y-e-text.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/a11y/e-text/gal-a11y-e-text.c b/a11y/e-text/gal-a11y-e-text.c index db066edd6e..2463126afa 100644 --- a/a11y/e-text/gal-a11y-e-text.c +++ b/a11y/e-text/gal-a11y-e-text.c @@ -9,6 +9,7 @@ #include <config.h> #include <string.h> #include "gal-a11y-e-text.h" +#include "gal-a11y-e-text-factory.h" #include "gal-a11y-util.h" #include <atk/atkobject.h> #include <atk/atktable.h> @@ -1119,3 +1120,14 @@ gal_a11y_e_text_get_type (void) return type; } + +void +gal_a11y_e_text_init (void) +{ + if (atk_get_root ()) + atk_registry_set_factory_type (atk_get_default_registry (), + E_TYPE_TEXT, + gal_a11y_e_text_factory_get_type ()); + +} + diff --git a/a11y/e-text/gal-a11y-e-text.h b/a11y/e-text/gal-a11y-e-text.h index 66d2d6283b..a4b204d296 100644 --- a/a11y/e-text/gal-a11y-e-text.h +++ b/a11y/e-text/gal-a11y-e-text.h @@ -37,4 +37,6 @@ struct _GalA11yETextClass { /* Standard Glib function */ GType gal_a11y_e_text_get_type (void); +void gal_a11y_e_text_init (void); + #endif /* ! __GAL_A11Y_E_TEXT_H__ */ |