[gtk+] gtk: Always load the atk-bridge



commit ffe1e31a2c3be64f0897e453c8600589a45c05c0
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 13 19:45:21 2012 +0100

    gtk: Always load the atk-bridge
    
    Slightly modified by Alejandro PiÃeiro
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677491

 configure.ac     |    4 ++--
 gtk/a11y/gail.c  |    2 ++
 gtk/gtkmodules.c |    5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d3215dc..f390430 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1278,11 +1278,11 @@ AC_SUBST(GDK_DEP_CFLAGS)
 # Check for Accessibility Toolkit flags
 ########################################
 
-ATK_PACKAGES=atk
+ATK_PACKAGES="atk atk-bridge-2.0"
 PKG_CHECK_MODULES(ATK, $ATK_PACKAGES)
 
 GTK_PACKAGES="atk cairo cairo-gobject gdk-pixbuf-2.0 gio-2.0"
-GTK_PRIVATE_PACKAGES=""
+GTK_PRIVATE_PACKAGES="atk-bridge-2.0"
 if test "x$enable_x11_backend" = xyes; then
   GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES pangoft2"
 fi
diff --git a/gtk/a11y/gail.c b/gtk/a11y/gail.c
index ae9f79e..ed5d190 100644
--- a/gtk/a11y/gail.c
+++ b/gtk/a11y/gail.c
@@ -33,6 +33,7 @@
 #include "gailutil.h"
 #include "gailmisc.h"
 
+#include <atk-bridge.h>
 
 static gboolean gail_focus_watcher      (GSignalInvocationHint *ihint,
                                          guint                  n_param_values,
@@ -806,6 +807,7 @@ _gtk_accessibility_init (void)
   focus_tracker_id = atk_add_focus_tracker (gail_focus_tracker);
 
   _gail_util_install ();
+  atk_bridge_adaptor_init (NULL, NULL);
 
   atk_misc_instance = g_object_new (GAIL_TYPE_MISC, NULL);
 }
diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
index 4d92fa0..5a15925 100644
--- a/gtk/gtkmodules.c
+++ b/gtk/gtkmodules.c
@@ -247,10 +247,11 @@ static gboolean
 module_is_blacklisted (const gchar *name,
                        gboolean     verbose)
 {
-  if (g_str_equal (name, "gail"))
+  if (g_str_equal (name, "gail") ||
+      g_str_equal (name, "atk-bridge"))
     {
       if (verbose)
-        g_message ("Not loading module \"gail\": The functionality is provided by GTK natively. Please try to not load it.");
+        g_message ("Not loading module \"%s\": The functionality is provided by GTK natively. Please try to not load it.", name);
 
       return TRUE;
     }



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