[at-spi2-atk] Reinstate gnome_accessibility_module_init/shutdown for the gtk 3 module



commit 650ec5e2cdd81fabf288e61e80c6ce8226fed9cc
Author: Mike Gorse <mgorse suse com>
Date:   Mon Jun 25 17:36:28 2012 -0500

    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.

 atk-adaptor/gtk-3.0/module.c |   17 +++++++++++++++++
 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 ();
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]