This commit is contained in:
Tim Janik 2000-06-28 16:18:39 +00:00
parent 09f8e937f2
commit 19ea0710a8

View File

@ -24,9 +24,9 @@ Sat Jun 24 23:03:04 2000 Tim Janik <timj@gtk.org>
called prior to a type nodes last_unref() function, this can be used called prior to a type nodes last_unref() function, this can be used
to prevent premature class destruction. multiple installed cache_func() to prevent premature class destruction. multiple installed cache_func()
will be chained upon last_unref() untill one of them returns TRUE. will be chained upon last_unref() untill one of them returns TRUE.
the cache_func()s have to check the type id passed in to figure whether the cache_func()s have to check the class id passed in to figure whether
they actually wants to cache the class of this type (since any types are they actually want to cache the class of this type (since all classes
routed through the cache_func() chain). are routed through the cache_func() chain).
g_type_remove_class_cache_func(): remove a previously installed g_type_remove_class_cache_func(): remove a previously installed
cache_func/data pair. the cache maintained by this function has to be cache_func/data pair. the cache maintained by this function has to be
clear when calling g_type_remove_class_cache_func() to avoid leaks. clear when calling g_type_remove_class_cache_func() to avoid leaks.