[glib/new-gsettings] Mention key names in the schema migration docs



commit 602625aa3d55068aaa57d1156d34fc1add62bae6
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Apr 16 13:02:44 2010 -0400

    Mention key names in the schema migration docs

 docs/reference/gio/migrating.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gio/migrating.xml b/docs/reference/gio/migrating.xml
index 93ec963..c11982a 100644
--- a/docs/reference/gio/migrating.xml
+++ b/docs/reference/gio/migrating.xml
@@ -274,6 +274,19 @@ start_monitoring_trash (void)
         </programlisting>
       </para>
       <para>
+        GSettings schemas have more stringent restrictions on key names
+        than GConf. Key names in GSettings are restricted to at most 32
+        characters, and must only consist of lowercase characters, numbers
+        and dashes, with no consecutive dashes. The first character must
+        not be a number or dash, and the last character cannot be '-'.
+        The <link linkend="gschema-compile">gschema-compile</link> schema
+        compiler has a <option>--allow-any-name</option> that lets you
+        ignore these restrictions. Note that this option is only meant
+        to facilitate the migration from GConf, and you should make your
+        key names follow the more stringent GSettings rules when you
+        migrate your data from GConf to dconf.
+      </para>
+      <para>
         GIO comes with a commandline tool
         <link linkend="gsettings-schema-convert">gsettings-schema-convert</link>
         that can help with the task of converting a GConf schema into



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]