URI: 
       tx11-libs/gtk+: Add atk-bridge patch. - parlay - yet another gentoo overlay
  HTML git clone https://git.parazyd.org/parlay
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit a9f3d029224e78c4c2dd359f362f4f7e196851b5
   DIR parent a1130125ac76e25fa092a1df6678d0f175265b5b
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Sat, 17 Feb 2018 21:58:16 +0100
       
       x11-libs/gtk+: Add atk-bridge patch.
       
       Diffstat:
         A x11-libs/gtk+/files/gtk+-3.22.26-a… |      56 +++++++++++++++++++++++++++++++
       
       1 file changed, 56 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/x11-libs/gtk+/files/gtk+-3.22.26-atk-bridge.patch b/x11-libs/gtk+/files/gtk+-3.22.26-atk-bridge.patch
       t@@ -0,0 +1,56 @@
       +diff --git a/config.h.in b/config.h.in
       +index 89a55e7..8858b24 100644
       +--- a/config.h.in
       ++++ b/config.h.in
       +@@ -10,6 +10,9 @@
       + /* Disable deprecation warnings from glib */
       + #undef GLIB_DISABLE_DEPRECATION_WARNINGS
       +
       ++/* Define if we're using atk-bridge-2.0 */
       ++#undef HAVE_ATK_BRIDGE
       ++
       + /* Define to 1 if you have the `bind_textdomain_codeset' function. */
       + #undef HAVE_BIND_TEXTDOMAIN_CODESET
       +
       +diff --git a/configure.ac b/configure.ac
       +index d6bd260..5c5cf62 100644
       +--- a/configure.ac
       ++++ b/configure.ac
       +@@ -1393,8 +1393,11 @@ AC_SUBST(GDK_DEP_CFLAGS)
       + # Check for Accessibility Toolkit flags
       + ########################################
       +
       +-if test x$enable_x11_backend = xyes; then
       ++AC_ARG_WITH(atk-bridge, AS_HELP_STRING([--without-atk-bridge], [Do not use atk-bridge-2.0]), :, with_atk_bridge=yes)
       ++
       ++if test x$enable_x11_backend = xyes -a x$with_atk_bridge = xyes; then
       +    ATK_PACKAGES="atk atk-bridge-2.0"
       ++   AC_DEFINE([HAVE_ATK_BRIDGE], [1], [Define if we are using atk-bridge-2.0])
       + else
       +    ATK_PACKAGES="atk"
       + fi
       +diff --git a/gtk/a11y/gtkaccessibility.c b/gtk/a11y/gtkaccessibility.c
       +index 7f0e520..542f36e 100644
       +--- a/gtk/a11y/gtkaccessibility.c
       ++++ b/gtk/a11y/gtkaccessibility.c
       +@@ -38,8 +38,10 @@
       + #include <gtk/gtkaccessible.h>
       +
       + #ifdef GDK_WINDOWING_X11
       ++#ifdef HAVE_ATK_BRIDGE
       + #include <atk-bridge.h>
       + #endif
       ++#endif
       +
       + static gboolean gail_focus_watcher      (GSignalInvocationHint *ihint,
       +                                          guint                  n_param_values,
       +@@ -989,7 +991,9 @@ _gtk_accessibility_init (void)
       +   do_window_event_initialization ();
       +
       + #ifdef GDK_WINDOWING_X11
       ++#ifdef HAVE_ATK_BRIDGE
       +   atk_bridge_adaptor_init (NULL, NULL);
       ++#endif
       + #endif
       +
       +   atk_misc_instance = g_object_new (GTK_TYPE_MISC_IMPL, NULL);