From 500aafd09960b5cea027585e3898192f9501d04f Mon Sep 17 00:00:00 2001 From: David King Date: Tue, 21 Feb 2012 10:05:08 +0000 Subject: [PATCH] docs: Clarify g_type_register_fundamental() behaviour https://bugzilla.gnome.org/show_bug.cgi?id=580873 --- gobject/gtype.c | 9 +++++---- 1 file 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. -- 2.7.4