]> err.no Git - mapper/commitdiff
Start to add a proper GConf schema
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 16 Jan 2008 09:08:39 +0000 (11:08 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 16 Jan 2008 09:08:39 +0000 (11:08 +0200)
configure.ac
data/mapper.schemas.in [new file with mode: 0644]

index 2a840ef47554d96d47b1798ba9d8d4b3c5f68b95..d0f159e25377363011039dac86fa133076c0d4b0 100644 (file)
@@ -48,6 +48,9 @@ PKG_CHECK_MODULES(GLIBGTK, glib-2.0 gconf-2.0 dbus-glib-1 gtk+-2.0)
 AC_SUBST(GLIBGTK_LIBS)
 AC_SUBST(GLIBGTK_CFLAGS)
 
+AC_PATH_PROG(GCONFTOOL, gconftool-2)
+AM_GCONF_SOURCE_2
+
 dnl Maemo has 3.8, but prefer new version in case it's available
 PKG_CHECK_MODULES(GTKHTML, libgtkhtml-3.14, HAVE_GTKHTML=yes, HAVE_GTKHTML=no)
 if test "x$HAVE_GTKHTML" = "xno"; then
@@ -369,7 +372,26 @@ AC_OUTPUT(
           po/Makefile
 )
 
-echo "Hildon:                     ${enable_hildon}"
-echo "IT specials (770/N800):     ${enable_770}"
-echo "IT D-Bus Bluetooth:         ${enable_itbtdbus}"
-echo "Bluez D-Bus:                ${enable_btdbus}"
+if test x$enable_hildon = xyes; then
+AC_MSG_NOTICE([** Hildon support enabled])
+fi
+
+if test x$enable_770 = xyes; then
+AC_MSG_NOTICE([** Tablet support enabled])
+fi
+
+if test x$enable_itbtdbus = xyes; then
+AC_MSG_NOTICE([** Tablet bluetooth D-Bus support enabled])
+fi
+
+if test x$enable_btdbus = xyes; then
+AC_MSG_NOTICE([** Bluez D-Bus support enabled])
+fi
+
+if test x$enable_gpsd = xyes; then
+AC_MSG_NOTICE([** GPSD support enabled])
+fi
+
+if test x$enable_gypsy = xyes; then
+AC_MSG_NOTICE([** Gypsy D-Bus GPS support enabled])
+fi
diff --git a/data/mapper.schemas.in b/data/mapper.schemas.in
new file mode 100644 (file)
index 0000000..fe2f1aa
--- /dev/null
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<gconfschemafile>
+    <schemalist>    
+
+      <schema>
+        <key>/schemas/apps/maemo/mapper/enable_gps</key>
+       <applyto>/apps/maemo/mapper/enable_gps</applyto>
+       <owner>maemo/mapper</owner>
+       <type>bool</type>
+       <default>true</default>
+       <locale name="C">
+         <short>GPS connection enabled</short>
+       </locale>
+      </schema>
+
+      <schema>
+        <key>/schemas/apps/maemo/mapper/gps_info</key>
+       <applyto>/apps/maemo/mapper/gps_info</applyto>
+       <owner>maemo/mapper</owner>
+       <type>bool</type>
+       <default>true</default>
+       <locale name="C">
+         <short>Display GPS information panel</short>
+       </locale>
+      </schema>
+
+      <schema>
+        <key>/schemas/apps/maemo/mapper/receiver_mac</key>
+       <applyto>/apps/maemo/mapper/receiver_mac</applyto>
+       <owner>maemo/mapper</owner>
+       <type>string</type>
+       <default/>
+       <locale name="C">
+         <short>Bluetooth MAC or device path for GPS device</short>
+       </locale>
+      </schema>
+
+      <schema>
+        <key>/schemas/apps/maemo/mapper/gps_filter</key>
+       <applyto>/apps/maemo/mapper/gps_filter</applyto>
+       <owner>maemo/mapper</owner>
+       <type>bool</type>
+       <default>false</default>
+       <locale name="C">
+         <short>GPS Track point filter</short>
+       </locale>
+      </schema>
+
+      <schema>
+        <key>/schemas/apps/maemo/mapper/gps_filter_maxdrop</key>
+       <applyto>/apps/maemo/mapper/gps_filter_maxdrop</applyto>
+       <owner>maemo/mapper</owner>
+       <type>int</type>
+       <default>1</default>
+       <locale name="C">
+         <short>Max number of GPS points to drop by the filter</short>
+       </locale>
+      </schema>
+
+  </schemalist>
+</gconfschemafile>