Apply patches by Stefan Kost to document naming restrictions. (#167614)
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Mar 2005 04:43:00 +0000 (04:43 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 8 Mar 2005 04:43:00 +0000 (04:43 +0000)
2005-03-07  Matthias Clasen  <mclasen@redhat.com>

* gobject/tmpl/gtype.sgml:
* gobject/tmpl/param_value_types.sgml:
* gobject/tmpl/gparamspec.sgml: Apply patches by
Stefan Kost to document naming restrictions. (#167614)

docs/reference/ChangeLog
docs/reference/gobject/tmpl/gparamspec.sgml
docs/reference/gobject/tmpl/gtype.sgml
docs/reference/gobject/tmpl/param_value_types.sgml

index 8d72fdba5a9eebfd2fa18b13b2f0b2b2468747f4..34aaadea3a22ade50a0cb53cdabd33a601c30b53 100644 (file)
@@ -1,3 +1,10 @@
+2005-03-07  Matthias Clasen  <mclasen@redhat.com>
+
+       * gobject/tmpl/gtype.sgml:
+       * gobject/tmpl/param_value_types.sgml:
+       * gobject/tmpl/gparamspec.sgml: Apply patches by
+       Stefan Kost to document naming restrictions. (#167614)
+
 2005-02-10  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/tmpl/option.sgml: Fix a typo.  (#166985)
index 84641c8e85cf72f8404c3410fc3e33caf1e8ea2f..9e0667818f96530bd4d59d2187aa4fd6705739fb 100644 (file)
@@ -9,6 +9,11 @@ Metadata for parameter specifications
 #GParamSpec is an object structure that encapsulates the metadata
 required to specify parameters, such as e.g. #GObject properties.
 </para>
+<para>
+Parameter names need to start with a letter (a-z or A-Z). Subsequent
+characters can be letters, numbers or a '-'.
+All other characters are replaced by a '-' during construction.
+</para>
 
 <!-- ##### SECTION See_Also ##### -->
 <para>
index 2bcc054edb93c61babe8c0ecaf581fee5bd7e425..93187d107de7c3cd04f8923f9817469b1f8561f3 100644 (file)
@@ -32,7 +32,13 @@ types called g_type_register_fundamental() which requires both a #GTypeInfo
 structure and a #GTypeFundamentalInfo structure but it is seldom used
 since most fundamental types are predefined rather than user-defined.
 </para>
-
+<para>
+A final word about type names.
+Such an identifier needs to be at least three characters long. There is no
+upper length limit. The first character needs to be a letter (a-z or A-Z)
+or an underscore '_'. Subsequent characters can be letters, numbers or
+any of '-_+'.
+</para>
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
index d3e28f2093f2b916bfebe5727b9eb3287b812c59..72e6a2b0454e1b5a1547fcf4c7edf5d1a29bff94 100644 (file)
@@ -13,6 +13,11 @@ Parameter specifications for most value types can be created as
 #GParamSpec derived instances, to implement e.g. #GObject properties which
 operate on #GValue containers.
 </para>
+<para>
+Parameter names need to start with a letter (a-z or A-Z). Subsequent
+characters can be letters, numbers or a '-'.
+All other characters are replaced by a '-' during construction.
+</para>
 
 <!-- ##### SECTION See_Also ##### -->
 <para>