2006-12-04 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Mon, 4 Dec 2006 19:19:53 +0000 (19:19 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Mon, 4 Dec 2006 19:19:53 +0000 (19:19 +0000)
commit6d87b1479c36d3bdb0cfda741a9c149f69f9010a
treec5e9737380667d63e6574b3f2a511677b59b25ec
parentf83ffa352034c79a0acb347895b36d75ccb2a486
2006-12-04  Emmanuele Bassi  <ebassi@openedhand.com>

Avoid clutter segfaulting when used without invoking
clutter_init().  This is needed when using api documentation
tools and every other tool relying on the GObject
introspection API (esp. on a headless box).  see the
note in clutter/clutter-feature.c:clutter_feature_init
for a full explanation.

* clutter/clutter-feature.c: Call clutter_feature_init()
when needed by one of the accessors of the features
structure.

* clutter/clutter-main.c:
* clutter/clutter-private.h: Remove clutter_feature_init()
public declaration: the features support check is done the
first time a feature is needed.

* clutter/clutter-main.c: Do not ever access the clutter
main context pointer directly; instead, obtain a pointer
to it via clutter_context_get_default(), which will always
return something valid.
ChangeLog
clutter/clutter-feature.c
clutter/clutter-main.c
clutter/clutter-private.h
doc/reference/Makefile.am
doc/reference/tmpl/clutter-behaviour-scale.sgml