summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2012-06-25 17:36:28 -0500
committerMike Gorse <mgorse@suse.com>2012-06-25 17:36:28 -0500
commit650ec5e2cdd81fabf288e61e80c6ce8226fed9cc (patch)
tree88332b9965edfbbfbef4325b05f28edd1d6c621d
parente4f3eee2e137cd34cd427875365f458c65458164 (diff)
downloadat-spi2-atk-650ec5e2cdd81fabf288e61e80c6ce8226fed9cc.tar.gz
Reinstate gnome_accessibility_module_init/shutdown for the gtk 3 module
Removing gnome_accessibility_module_init/shutdown will break Unity, for one, and there is no real reason to remove it, other than it being an old API that is to be deprecated and should not be needed anymore, but the new API is not necessarily finalized, so might as well reinstate the old method for now until we are certain what the new API will be and can then request that, ie, Unity be patched accordingly.
-rw-r--r--atk-adaptor/gtk-3.0/module.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/atk-adaptor/gtk-3.0/module.c b/atk-adaptor/gtk-3.0/module.c
index 97929d9..d2a49ee 100644
--- a/atk-adaptor/gtk-3.0/module.c
+++ b/atk-adaptor/gtk-3.0/module.c
@@ -43,3 +43,20 @@ g_module_check_init (GModule *module)
return NULL;
}
+
+void
+gnome_accessibility_module_init (void)
+{
+ atk_bridge_adaptor_init (NULL, NULL);
+
+ if (g_getenv ("AT_SPI_DEBUG"))
+ {
+ g_print ("Atk Accessibility bridge initialized\n");
+ }
+}
+
+void
+gnome_accessibility_module_shutdown (void)
+{
+ atk_bridge_adaptor_cleanup ();
+}