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 97929d9d132500cb59c28f508ad87b0815af5620..d2a49ee1c5060c11154f21d3bdf1c2b1075b369b 100644 (file)
@@ -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 ();
+}