Line 0
Link Here
|
|
|
1 |
# Revert bug 677491 comment 45 |
2 |
|
3 |
diff --git configure configure.ac |
4 |
index d4c2262..37b6349 100644 |
5 |
--- configure |
6 |
+++ configure |
7 |
@@ -1039,6 +1039,7 @@ enable_glibtest |
8 |
enable_modules |
9 |
with_included_immodules |
10 |
with_x |
11 |
+with_atk_bridge |
12 |
enable_cups |
13 |
enable_papi |
14 |
enable_cloudprint |
15 |
@@ -1790,6 +1791,7 @@ Optional Packages: |
16 |
--with-included-immodules=MODULE1,MODULE2,... |
17 |
build the specified input methods into gtk |
18 |
--with-x use the X Window System |
19 |
+ --without-atk-bridge Do not use atk-bridge-2.0 |
20 |
--with-html-dir=PATH path to installed docs |
21 |
--with-xml-catalog=CATALOG |
22 |
path to xml catalog to use |
23 |
@@ -24609,8 +24611,20 @@ fi |
24 |
# Check for Accessibility Toolkit flags |
25 |
######################################## |
26 |
|
27 |
-if test x$enable_x11_backend = xyes; then |
28 |
+ |
29 |
+# Check whether --with-atk-bridge was given. |
30 |
+if test "${with_atk_bridge+set}" = set; then : |
31 |
+ withval=$with_atk_bridge; : |
32 |
+else |
33 |
+ with_atk_bridge=$enable_x11_backend |
34 |
+fi |
35 |
+ |
36 |
+ |
37 |
+if test x$with_atk_bridge != xno; then |
38 |
ATK_PACKAGES="atk atk-bridge-2.0" |
39 |
+ |
40 |
+$as_echo "#define HAVE_ATK_BRIDGE 1" >>confdefs.h |
41 |
+ |
42 |
else |
43 |
ATK_PACKAGES="atk" |
44 |
fi |
45 |
diff --git config.h.in config.h.in |
46 |
index d4c2262..37b6349 100644 |
47 |
--- config.h.in |
48 |
+++ config.h.in |
49 |
@@ -15,6 +15,9 @@ |
50 |
/* Define the location where the catalogs will be installed */ |
51 |
#undef GTK_LOCALEDIR |
52 |
|
53 |
+/* Define if we're using atk-bridge-2.0 */ |
54 |
+#undef HAVE_ATK_BRIDGE |
55 |
+ |
56 |
/* Define to 1 if you have the `bind_textdomain_codeset' function. */ |
57 |
#undef HAVE_BIND_TEXTDOMAIN_CODESET |
58 |
|
59 |
diff --git gtk/a11y/gtkaccessibility.c gtk/a11y/gtkaccessibility.c |
60 |
index 4f5028b..ff8450a 100644 |
61 |
--- gtk/a11y/gtkaccessibility.c |
62 |
+++ gtk/a11y/gtkaccessibility.c |
63 |
@@ -37,7 +37,7 @@ |
64 |
#include <gtk/gtkcombobox.h> |
65 |
#include <gtk/gtkaccessible.h> |
66 |
|
67 |
-#ifdef GDK_WINDOWING_X11 |
68 |
+#ifdef HAVE_ATK_BRIDGE |
69 |
#include <atk-bridge.h> |
70 |
#endif |
71 |
|
72 |
@@ -989,7 +989,7 @@ _gtk_accessibility_shutdown (void) |
73 |
|
74 |
g_clear_object (&atk_misc_instance); |
75 |
|
76 |
-#ifdef GDK_WINDOWING_X11 |
77 |
+#ifdef HAVE_ATK_BRIDGE |
78 |
atk_bridge_adaptor_cleanup (); |
79 |
#endif |
80 |
|
81 |
@@ -1011,7 +1011,7 @@ _gtk_accessibility_init (void) |
82 |
_gtk_accessibility_override_atk_util (); |
83 |
do_window_event_initialization (); |
84 |
|
85 |
-#ifdef GDK_WINDOWING_X11 |
86 |
+#ifdef HAVE_ATK_BRIDGE |
87 |
atk_bridge_adaptor_init (NULL, NULL); |
88 |
#endif |
89 |
|