[hyena] Enable a11y if Gtk# recent enough
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hyena] Enable a11y if Gtk# recent enough
- Date: Tue, 12 Jan 2010 20:24:13 +0000 (UTC)
commit c973bb1bffebbc860457178c6994431dfba97112
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Jan 12 12:22:23 2010 -0800
Enable a11y if Gtk# recent enough
configure.ac | 12 ++++++++++++
src/Hyena.Gui/Makefile.am | 9 +++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7d35dff..f30c633 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,10 @@ dnl package checks, common for all configs
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0])
+dnl See if Gtk# is recent enought to enable managed widget a11y
+PKG_CHECK_MODULES(GTKSHARP_A11Y, gtk-sharp-2.0 >= 2.12.10, gtksharp_with_a11y=yes, gtksharp_with_a11y=no)
+AM_CONDITIONAL(ENABLE_ATK, test "x$gtksharp_with_a11y" = "xyes")
+
dnl package checks, per config
@@ -74,4 +78,12 @@ Makefile
])
+cat <<EOF
+
+${PACKAGE}-${VERSION}
+
+Custom a11y: ${gtksharp_with_a11y} (requires gtk-sharp >= 2.12.10)
+
+EOF
+
AC_OUTPUT
diff --git a/src/Hyena.Gui/Makefile.am b/src/Hyena.Gui/Makefile.am
index 0cec6fe..cde27d2 100644
--- a/src/Hyena.Gui/Makefile.am
+++ b/src/Hyena.Gui/Makefile.am
@@ -17,8 +17,7 @@ HYENA_DLL_SOURCE=../../bin/Hyena.dll
HYENA_DLL_MDB_SOURCE=../../bin/Hyena.dll.mdb
HYENA_GUI_DLL_MDB_SOURCE=../../bin/Hyena.Gui.dll.mdb
-endif
-
+else
if ENABLE_WINDOWS
ASSEMBLY_COMPILER_COMMAND = $(MCS)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -unsafe -warn:4 -optimize- -debug -define:DEBUG
@@ -32,7 +31,13 @@ BUILD_DIR = ../../bin
HYENA_DLL_SOURCE=../../bin/Hyena.dll
HYENA_DLL_MDB_SOURCE=../../bin/Hyena.dll.mdb
HYENA_GUI_DLL_MDB_SOURCE=../../bin/Hyena.Gui.dll.mdb
+else
+ASSEMBLY_COMPILER_FLAGS = ""
+endif
+endif
+if ENABLE_ATK
+ASSEMBLY_COMPILER_FLAGS += -define:ENABLE_ATK
endif
AL=al2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]