spacepaste

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