From 38cbe8d21ab0a9313bf722dbe551ac5e5e6b3c26 Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Tue, 23 Feb 2010 16:05:29 +0800
Subject: [PATCH] Add at-spi2-atk.schemas.
Create /desktop/gnome/interface/at-spi-dbus to enable D-Bus at-spi2.
---
Makefile.am | 18 ++++++++++++++++++
at-spi2-atk.schemas | 16 ++++++++++++++++
configure.ac | 5 +++++
3 files changed, 39 insertions(+), 0 deletions(-)
create mode 100644 at-spi2-atk.schemas
diff --git a/Makefile.am b/Makefile.am
index ca33cea..df864ba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,19 @@
SUBDIRS=dbind droute common atk-adaptor
+
+schemasdir = $(GCONF_SCHEMA_FILE_DIR)
+schemas_files = at-spi2-atk.schemas
+schemas_DATA = $(schemas_files)
+
+if GCONF_SCHEMAS_INSTALL
+install-data-local:
+ if test -z "$(DESTDIR)" ; then \
+ for p in $(schemas_DATA) ; do \
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p ; \
+ done \
+ fi
+else
+install-data-local:
+endif
+
+EXTRA_DIST = \
+ $(schemas_files)
diff --git a/at-spi2-atk.schemas b/at-spi2-atk.schemas
new file mode 100644
index 0000000..200af02
--- /dev/null
+++ b/at-spi2-atk.schemas
@@ -0,0 +1,16 @@
+
+
+
+
+ /schemas/desktop/gnome/interface/at-spi-dbus
+ /desktop/gnome/interface/at-spi-dbus
+ gnome
+ bool
+ false
+
+ Enable D-Bus-based AT-SPI infrastructure
+ In combination with /desktop/gnome/interface/accessibility, this key is needed to enable the D-Bus-based AT-SPI infrastructure.
+
+
+
+
diff --git a/configure.ac b/configure.ac
index c32625f..d3edfc0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,11 @@ PKG_PROG_PKG_CONFIG
AC_CONFIG_HEADERS([config.h])
+dnl GConf checks
+AC_PATH_PROG(GCONFTOOL, gconftool-2)
+AM_GCONF_SOURCE_2
+
+
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.0])
AC_SUBST(DBUS_LIBS)
AC_SUBST(DBUS_CFLAGS)
--
1.6.3.3