fixed g_type_name() docs to forbid passing in invalid type IDs.
authorTim Janik <timj@gtk.org>
Thu, 12 Jul 2007 16:29:21 +0000 (16:29 +0000)
committerTim Janik <timj@src.gnome.org>
Thu, 12 Jul 2007 16:29:21 +0000 (16:29 +0000)
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

docs/reference/ChangeLog
docs/reference/gobject/tmpl/gtype.sgml

index de811a1..22dac54 100644 (file)
@@ -1,3 +1,8 @@
+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,
index 75bc872..ace29c3 100644 (file)
@@ -647,8 +647,11 @@ Similar to g_type_init(), but additionally sets debug flags.
 
 <!-- ##### 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.