Thu Jul 12 18:28:47 2007 Tim Janik <timj@gtk.org>
* gobject/tmpl/gtype.sgml: fixed g_type_name() docs to forbid passing in
invalid type IDs.
svn path=/trunk/; revision=5632
+Thu Jul 12 18:28:47 2007 Tim Janik <timj@gtk.org>
+
+ * gobject/tmpl/gtype.sgml: fixed g_type_name() docs to forbid passing in
+ invalid type IDs.
+
Thu Jul 12 15:45:27 2007 Tim Janik <timj@imendio.com>
* glib/tmpl/threads.sgml: document major caveat of g_private_set/g_private_get,
<!-- ##### FUNCTION g_type_name ##### -->
<para>
-Returns the unique name that is assigned to a type ID (this is the preferred method
-to find out whether a specific type has been registered for the passed in ID yet).
+ Returns the unique name that is assigned to a type ID.
+ Note that this function (like all other GType API) cannot cope with invalid
+ type IDs. %G_TYPE_INVALID may be passed to this function, as may be any other
+ validly registered type ID, but randomized type IDs should not be passed in and
+ will most likely lead to a crash.
</para>
@type: Type to return name for.