void gsk_dbi_synchronized_object_register_class_dependency
(GtkType type,
const gchar * depends_on) |
This function is for declaring circular dependencies in the class create
process.
Calling this function indicates that before _instances_ of type can
be created, depends_on must be class_create ()-d. This only works
if you call this before the first instance of type is instantiated for
the particular program instance. Thus, call this function in the type's
_get_type () function. depends_on will be resolved into a type_id after
the first call to class_create () for type returns. At that time,
depends_on must either be registered with the type system, or a
_get_type () function following the usual naming convention must be
available in the executable (NULL gmodule).
This method can handle circular dependencies, in exchange for
class_create ()-ing type before class_create ()-ing all "depends_on" types.
Parameters:
- type
The type which is declaring the dependency.
- depends_on
The name of the type which is depended on. This name will be resolved into
a type_id after the first call to class_create () for type returns. At that
time it must either be registered with the type system or a _get_type ()
function following the usual naming conventions must be present in the
executable (NULL gmodule).