Line 0
Link Here
|
|
|
1 |
# Revert bug 677491 comment 45 |
2 |
|
3 |
diff --git configure configure |
4 |
index **NOT SURE HERE** |
5 |
--- configure |
6 |
+++ configure |
7 |
@@ -1061,6 +1061,7 @@ |
8 |
enable_modules |
9 |
with_included_immodules |
10 |
with_x |
11 |
+with_atk_bridge |
12 |
enable_win32_gles |
13 |
enable_cups |
14 |
enable_papi |
15 |
@@ -1838,6 +1839,7 @@ |
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 |
@@ -27103,8 +27105,20 @@ |
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/gtktogglebutton.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 |
@@ -987,7 +987,7 @@ _gtk_accessibility_init (void) |
73 |
_gtk_accessibility_override_atk_util (); |
74 |
do_window_event_initialization (); |
75 |
|
76 |
-#ifdef GDK_WINDOWING_X11 |
77 |
+#ifdef HAVE_ATK_BRIDGE |
78 |
atk_bridge_adaptor_init (NULL, NULL); |
79 |
#endif |
80 |
|
0 |
|
81 |
|