logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

gtk+-3.22.19.atk-bridge.patch (1867B)


  1. $NetBSD: patch-configure.ac,v 1.2 2014/09/08 12:06:48 wiz Exp $
  2. Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
  3. --- 1/configure.ac
  4. +++ 2/configure.ac
  5. @@ -1370,8 +1370,13 @@ AC_SUBST(GDK_DEP_CFLAGS)
  6. # Check for Accessibility Toolkit flags
  7. ########################################
  8. -if test x$enable_x11_backend = xyes; then
  9. +AC_ARG_WITH(atk-bridge,
  10. + AS_HELP_STRING([--without-atk-bridge], [Do not use atk-bridge-2.0]),
  11. + :, with_atk_bridge=yes)
  12. +
  13. +if test x$enable_x11_backend = xyes -a x$with_atk_bridge = xyes; then
  14. ATK_PACKAGES="atk atk-bridge-2.0"
  15. + AC_DEFINE([HAVE_ATK_BRIDGE], [1], [Define if we're using atk-bridge-2.0])
  16. else
  17. ATK_PACKAGES="atk"
  18. fi
  19. $NetBSD: patch-config.h.in,v 1.2 2014/09/08 12:06:48 wiz Exp $
  20. Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
  21. --- 1/config.h.in
  22. +++ 1/config.h.in
  23. @@ -10,6 +10,9 @@
  24. /* Disable deprecation warnings from glib */
  25. #undef GLIB_DISABLE_DEPRECATION_WARNINGS
  26. +/* Define if we're using atk-bridge-2.0 */
  27. +#undef HAVE_ATK_BRIDGE
  28. +
  29. /* Define to 1 if you have the `bind_textdomain_codeset' function. */
  30. #undef HAVE_BIND_TEXTDOMAIN_CODESET
  31. Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
  32. --- 1/gtk/a11y/gtkaccessibility.c
  33. +++ 1/gtk/a11y/gtkaccessibility.c
  34. @@ -38,8 +38,10 @@
  35. #include <gtk/gtkaccessible.h>
  36. #ifdef GDK_WINDOWING_X11
  37. +#ifdef HAVE_ATK_BRIDGE
  38. #include <atk-bridge.h>
  39. #endif
  40. +#endif
  41. static gboolean gail_focus_watcher (GSignalInvocationHint *ihint,
  42. guint n_param_values,
  43. @@ -989,8 +991,10 @@ _gtk_accessibility_init (void)
  44. do_window_event_initialization ();
  45. #ifdef GDK_WINDOWING_X11
  46. +#ifdef HAVE_ATK_BRIDGE
  47. atk_bridge_adaptor_init (NULL, NULL);
  48. #endif
  49. +#endif
  50. atk_misc_instance = g_object_new (GTK_TYPE_MISC_IMPL, NULL);
  51. }