Some more doc cleanups

This commit is contained in:
Matthias Clasen 2010-03-26 10:11:46 -04:00
parent c4ea7d58f7
commit 81e2aa941b
4 changed files with 17 additions and 33 deletions

View File

@ -2066,6 +2066,8 @@ g_zlib_decompressor_get_type
<TITLE>GFileDescriptorBased</TITLE> <TITLE>GFileDescriptorBased</TITLE>
GFileDescriptorBased GFileDescriptorBased
g_file_descriptor_based_get_fd g_file_descriptor_based_get_fd
<SUBSECTION Standard>
GFileDescriptorBaseIFace
<SUBSECTION Private> <SUBSECTION Private>
g_file_descriptor_based_get_type g_file_descriptor_based_get_type
G_FILE_DESCRIPTOR_BASED G_FILE_DESCRIPTOR_BASED

View File

@ -54,7 +54,6 @@ g_type_class_peek_static
g_type_class_unref g_type_class_unref
g_type_class_peek_parent g_type_class_peek_parent
g_type_class_add_private g_type_class_add_private
g_type_class_get_private
g_type_add_class_private g_type_add_class_private
g_type_interface_peek g_type_interface_peek
g_type_interface_peek_parent g_type_interface_peek_parent
@ -119,6 +118,7 @@ g_type_check_is_value_type
g_type_check_value g_type_check_value
g_type_check_value_holds g_type_check_value_holds
g_type_instance_get_private g_type_instance_get_private
g_type_class_get_private
g_type_test_flags g_type_test_flags
g_type_name_from_instance g_type_name_from_instance
g_type_name_from_class g_type_name_from_class

View File

@ -64,6 +64,15 @@ are set for @type.
@flags: Bitwise combination of #GTypeFlags and #GTypeFundamentalFlags. @flags: Bitwise combination of #GTypeFlags and #GTypeFundamentalFlags.
@Returns: #TRUE if all @flags are set for @type, #FALSE otherwise. @Returns: #TRUE if all @flags are set for @type, #FALSE otherwise.
<!-- ##### FUNCTION g_type_class_get_private ##### -->
<para>
</para>
@klass:
@private_type:
@Returns:
<!-- ##### FUNCTION g_type_instance_is_a ##### --> <!-- ##### FUNCTION g_type_instance_is_a ##### -->
<para> <para>
Determines if @instance adheres to the interface exported Determines if @instance adheres to the interface exported

View File

@ -4373,39 +4373,12 @@ g_type_init (void)
* the type and all of its parent types are allocated * the type and all of its parent types are allocated
* sequentially in the same memory block as the public * sequentially in the same memory block as the public
* structures. This function should be called in the * structures. This function should be called in the
* type's class_init() function. The private structure can * type's class_init() function.
* be retrieved using the G_TYPE_INSTANCE_GET_PRIVATE() macro.
* The following example shows attaching a private structure
* <structname>MyObjectPrivate</structname> to an object
* <structname>MyObject</structname> defined in the standard GObject
* fashion.
* *
* |[ * The private structure can be retrieved using the
* typedef struct _MyObjectPrivate MyObjectPrivate; * G_TYPE_CLASS_GET_PRIVATE() macro.
*
* struct _MyObjectPrivate { * Since: 2.24
* int some_field;
* };
*
* #define MY_OBJECT_GET_PRIVATE(o) \
* (G_TYPE_INSTANCE_GET_PRIVATE ((o), MY_TYPE_OBJECT, MyObjectPrivate))
*
* static void
* my_object_class_init (MyObjectClass *klass)
* {
* g_type_class_add_private (klass, sizeof (MyObjectPrivate));
* }
*
* static int
* my_object_get_some_field (MyObject *my_object)
* {
* MyObjectPrivate *priv = MY_OBJECT_GET_PRIVATE (my_object);
*
* return priv->some_field;
* }
* ]|
*
* Since: 2.4
*/ */
void void
g_type_class_add_private (gpointer g_class, g_type_class_add_private (gpointer g_class,