Additions.
authorMatthias Clasen <maclas@gmx.de>
Sun, 19 Oct 2003 23:17:30 +0000 (23:17 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 19 Oct 2003 23:17:30 +0000 (23:17 +0000)
Mon Oct 20 01:12:46 2003  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/gtype.sgml:
* gobject/tmpl/param_value_types.sgml:
* gobject/tmpl/value_arrays.sgml: Additions.

* gobject/tmpl/gboxed.sgml:
* gobject/gobject-sections.txt: Remove prematurely added
GStrv documentation.

docs/reference/ChangeLog
docs/reference/gobject/gobject-sections.txt
docs/reference/gobject/tmpl/gboxed.sgml
docs/reference/gobject/tmpl/gtype.sgml
docs/reference/gobject/tmpl/param_value_types.sgml
docs/reference/gobject/tmpl/value_arrays.sgml

index 9de9ea7..e3d5e70 100644 (file)
@@ -1,3 +1,13 @@
+Mon Oct 20 01:12:46 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * gobject/tmpl/gtype.sgml: 
+       * gobject/tmpl/param_value_types.sgml: 
+       * gobject/tmpl/value_arrays.sgml: Additions.
+
+       * gobject/tmpl/gboxed.sgml: 
+       * gobject/gobject-sections.txt: Remove prematurely added
+       GStrv documentation.
+
 Sun Oct 19 22:18:28 2003  Matthias Clasen  <maclas@gmx.de>
 
        * gobject/Makefile.am (INCLUDES): Add $(top_builddir)/glib
index 9800791..be39794 100644 (file)
@@ -287,8 +287,6 @@ g_pointer_type_register_static
 
 <SUBSECTION>
 G_TYPE_GSTRING
-G_TYPE_STRV
-GStrv
 
 <SUBSECTION Standard>
 G_TYPE_IS_BOXED
index e6b36e9..9a3d974 100644 (file)
@@ -82,40 +82,3 @@ The #GType for #GString.
 
 
 
-<!-- ##### MACRO G_TYPE_STRV ##### -->
-<para>
-The #GType for a boxed type holding a %NULL-terminated array of strings.
-</para>
-<para>
-The code fragments in the following example show the use of a property of
-type #G_TYPE_STRV with g_object_class_install_property(), g_object_set()
-and g_object_get().
-</para>
-<informalexample><programlisting>
-g_object_class_install_property (object_class,
-                                 PROP_AUTHORS,
-                                 g_param_spec_boxed ("authors",
-                                                     _("Authors"),
-                                                     _("List of authors"),
-                                                     G_TYPE_STRV,
-                                                     G_PARAM_READWRITE));
-
-
-gchar *authors[] = { "Owen", "Tim", NULL };
-g_object_set (obj, "authors", authors, NULL);
-
-
-gchar *writers[];
-g_object_get (obj, "authors", &amp;writers, NULL);
-/* do something with writers */
-g_strfreev (writers);
-</programlisting></informalexample>
-
-
-
-<!-- ##### TYPEDEF GStrv ##### -->
-<para>
-
-</para>
-
-
index 5864ee1..9776054 100644 (file)
@@ -426,7 +426,10 @@ to serve as a container for values of a type.
 
 <!-- ##### MACRO G_TYPE_FROM_INSTANCE ##### -->
 <para>
-Returns the type identifier from a given @instance structure.
+Returns the type identifier from a given @instance structure. 
+<para>
+</para>
+This macro should only be used in type implementations.
 </para>
 
 @instance: Location of a valid #GTypeInstance structure.
@@ -435,6 +438,9 @@ Returns the type identifier from a given @instance structure.
 <!-- ##### MACRO G_TYPE_FROM_CLASS ##### -->
 <para>
 Returns the type identifier from a given @class structure.
+<para>
+</para>
+This macro should only be used in type implementations.
 </para>
 
 @g_class: Location of a valid #GTypeClass structure.
@@ -443,6 +449,9 @@ Returns the type identifier from a given @class structure.
 <!-- ##### MACRO G_TYPE_FROM_INTERFACE ##### -->
 <para>
 Returns the type identifier from a given @interface structure.
+<para>
+</para>
+This macro should only be used in type implementations.
 </para>
 
 @g_iface: Location of a valid #GTypeInterface structure.
@@ -452,6 +461,9 @@ Returns the type identifier from a given @interface structure.
 <para>
 Returns the class structure of a given @instance, casted
 to a specified anchestor type @g_type of the instance.
+<para>
+</para>
+This macro should only be used in type implementations.
 </para>
 
 @instance:     Location of the #GTypeInstance structure.
@@ -462,6 +474,9 @@ to a specified anchestor type @g_type of the instance.
 <!-- ##### MACRO G_TYPE_INSTANCE_GET_INTERFACE ##### -->
 <para>
 Returns the interface structure for interface @g_type of a given @instance.
+<para>
+</para>
+This macro should only be used in type implementations.
 </para>
 
 @instance: Location of the #GTypeInstance structure.
@@ -475,6 +490,9 @@ Gets the private structure for a particular type.
 The private structure must have been registered in the
 class_init function with g_type_class_add_private().
 </para>
+<para>
+This macro should only be used in type implementations.
+</para>
 
 @instance: the instance of a type deriving from @private_type.
 @g_type: the type identifying which private data to retrieve.
@@ -483,65 +501,95 @@ class_init function with g_type_class_add_private().
 
 <!-- ##### MACRO G_TYPE_CHECK_INSTANCE ##### -->
 <para>
-
+Returns %TRUE if @instance is a valid #GTypeInstance structure,
+otherwise emits a warning and returns %FALSE.
+<para>
+</para>
+This macro should only be used in type implementations.
 </para>
 
-@instance: 
+@instance: Location of a #GTypeInstance structure.
 
 
 <!-- ##### MACRO G_TYPE_CHECK_INSTANCE_CAST ##### -->
 <para>
-
+Checks that @instance is an instance of the type identified by @g_type
+and emits a warning if this is not the case. Returns @instance casted 
+to a pointer to @c_type.
+</para>
+<para>
+This macro should only be used in type implementations.
 </para>
 
-@instance: 
-@g_type: 
-@c_type: 
+@instance: Location of a #GTypeInstance structure.
+@g_type: The type to be returned.
+@c_type: The corresponding C type of @g_type.
 
 
 <!-- ##### MACRO G_TYPE_CHECK_INSTANCE_TYPE ##### -->
 <para>
-
+Returns %TRUE if @instance is an instance of the type identified by @g_type.
+Otherwise emits a warning and returns %FALSE.
+</para>
+<para>
+This macro should only be used in type implementations.
 </para>
 
-@instance: 
-@g_type: 
+@instance: Location of a #GTypeInstance structure.
+@g_type: The type to be checked
 
 
 <!-- ##### MACRO G_TYPE_CHECK_CLASS_CAST ##### -->
 <para>
-
+Checks that @g_class is a class structure of the type identified by @g_type
+and emits a warning if this is not the case. Returns @g_class casted 
+to a pointer to @c_type.
+</para>
+<para>
+This macro should only be used in type implementations.
 </para>
 
-@g_class: 
-@g_type: 
-@c_type: 
+@g_class: Location of a #GTypeClass structure.
+@g_type: The type to be returned.
+@c_type: The corresponding C type of class structure of @g_type.
 
 
 <!-- ##### MACRO G_TYPE_CHECK_CLASS_TYPE ##### -->
 <para>
-
+Returns %TRUE if @g_class is a class structure of the type identified by 
+@g_type. Otherwise emits a warning and returns %FALSE.
+</para>
+<para>
+This macro should only be used in type implementations.
 </para>
 
-@g_class: 
-@g_type: 
+@g_class: Location of a #GTypeClass structure.
+@g_type: The type to be checked.
 
 
 <!-- ##### MACRO G_TYPE_CHECK_VALUE ##### -->
 <para>
-
+Returns %TRUE if @value has been initialized to hold values
+of a value type.
+</para>
+<para>
+This macro should only be used in type implementations.
 </para>
 
-@value: 
+@value: a #GValue
 
 
 <!-- ##### MACRO G_TYPE_CHECK_VALUE_TYPE ##### -->
 <para>
-
+Returns %TRUE if @value has been initialized to hold values
+of type @g_type. 
+</para>
+<para>
+This macro should only be used in type implementations.
 </para>
 
-@value: 
-@g_type: 
+@value: a #GValue
+@g_type: The type to be checked.
 
 
 <!-- ##### MACRO G_TYPE_FLAG_RESERVED_ID_BIT ##### -->
@@ -550,6 +598,7 @@ A bit in the type number that's supposed to be left untouched.
 </para>
 
 
+
 <!-- ##### FUNCTION g_type_init ##### -->
 <para>
 Prior to any use of the type system, g_type_init() has to be called to initialize
@@ -1327,7 +1376,7 @@ to avoid leaks.
 </para>
 
 @cache_data: data that was given when adding @cache_func
-@cache_func: a #GTypeClassCacheFunc 
+@cache_func: a #GTypeClassCacheFunc
 
 
 <!-- ##### FUNCTION g_type_class_unref_uncached ##### -->
@@ -1541,6 +1590,7 @@ The fundamental type for #GObject.
 </para>
 
 
+
 <!-- ##### MACRO G_TYPE_RESERVED_GLIB_FIRST ##### -->
 <para>
 First fundamental type number to create a new fundamental type id with
index 51a2f56..59613b9 100644 (file)
@@ -1062,7 +1062,7 @@ properties.
 
 <!-- ##### TYPEDEF gchararray ##### -->
 <para>
-
+A C representable type name for #G_TYPE_STRING.
 </para>
 
 
index f197867..8b3e08c 100644 (file)
@@ -18,6 +18,7 @@ in order for it to be used as a boxed type through %G_TYPE_VALUE_ARRAY.
 
 <!-- ##### STRUCT GValueArray ##### -->
 <para>
+A #GValueArray contains an array of #GValue elements.
 </para>
 
 @n_values:     number of values contained in the array