Add base initialisation function

Add a semi-private function, called clutter_base_init(), which initialises
the basic Clutter functionalities (at the moment, just the GLib type system)
without calling in the backend-specific code. This function is only useful
for gtk-doc, to introspect the library when generating documentation for
signals, properties and class hierarchy.

Also, change the documentation build system to use clutter_base_init() when
launching the scanner program.
This commit is contained in:
Emmanuele Bassi
2007-05-16 15:00:41 +00:00
parent 06bf2ddaef
commit 507f04a8f6
11 changed files with 71 additions and 74 deletions

View File

@ -93,7 +93,10 @@ _clutter_feature_init (void)
gboolean
clutter_feature_available (ClutterFeatureFlags feature)
{
return (__features->flags & feature);
if (G_UNLIKELY (!__features))
return FALSE;
return (__features->flags & feature);
}
/**