[glib/wip/doc-fixes: 10/11] docs: Clarify g_type_register_fundamental() behaviour



commit 182b14a9a3218c52f5e44bf5d0c861bbf542d74d
Author: David King <amigadave amigadave com>
Date:   Tue Feb 21 10:05:08 2012 +0000

    docs: Clarify g_type_register_fundamental() behaviour
    
    https://bugzilla.gnome.org/show_bug.cgi?id=580873

 gobject/gtype.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index a0e9106..3732f7f 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -2584,10 +2584,11 @@ g_type_remove_interface_check (gpointer                check_data,
  * @flags: Bitwise combination of #GTypeFlags values.
  *
  * Registers @type_id as the predefined identifier and @type_name as the
- * name of a fundamental type.  The type system uses the information
- * contained in the #GTypeInfo structure pointed to by @info and the
- * #GTypeFundamentalInfo structure pointed to by @finfo to manage the
- * type and its instances.  The value of @flags determines additional
+ * name of a fundamental type. If @type_id is already registered, or a type
+ * named @type_name is already registered, the behaviour is undefined. The type
+ * system uses the information contained in the #GTypeInfo structure pointed to
+ * by @info and the #GTypeFundamentalInfo structure pointed to by @finfo to
+ * manage the type and its instances. The value of @flags determines additional
  * characteristics of the fundamental type.
  *
  * Returns: The predefined type identifier.



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