diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-05-16 15:00:41 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-05-16 15:00:41 +0000 |
commit | 507f04a8f6fcf608bb11560a0fac7ba28ea96b3c (patch) | |
tree | b92d9bdab08fdf68e50bd40e47cc9757ccbc1e93 /clutter/clutter-feature.c | |
parent | 06bf2ddaefa5874d55358b80bc4bf03563784199 (diff) | |
download | clutter-507f04a8f6fcf608bb11560a0fac7ba28ea96b3c.tar.gz |
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.
Diffstat (limited to 'clutter/clutter-feature.c')
-rw-r--r-- | clutter/clutter-feature.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clutter/clutter-feature.c b/clutter/clutter-feature.c index 015d6ab58..17694f19a 100644 --- a/clutter/clutter-feature.c +++ b/clutter/clutter-feature.c @@ -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); } /** |