Reinstate gnome_accessibility_module_init/shutdown for the gtk 3 module
authorMike Gorse <mgorse@suse.com>
Mon, 25 Jun 2012 22:36:28 +0000 (17:36 -0500)
committerMike Gorse <mgorse@suse.com>
Mon, 25 Jun 2012 22:36:28 +0000 (17:36 -0500)
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.

atk-adaptor/gtk-3.0/module.c

index 97929d9..d2a49ee 100644 (file)
@@ -43,3 +43,20 @@ g_module_check_init (GModule *module)
 
   return NULL;
 }
 
   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 ();
+}