Add ClutterActor::create_pango_context()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 5 Jan 2009 15:29:10 +0000 (15:29 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 5 Jan 2009 15:29:10 +0000 (15:29 +0000)
commit982a678053a518e94928e5d7a344c4c5525dec15
tree2a8c055e08b5c729d7a1e340c4187506effdfe90
parentd622a4dd8933b33f9328beaf1bf825451cadd025
Add ClutterActor::create_pango_context()

Sometimes an actor needs to set specific font rendering options on
the PangoContext without changing settings for every other text-rendering
actor.

In order to do this, we need a new public method to create a Pango
context object -- preset with all the default settings -- owned by the
developer and not shared with the rest of Clutter.

This new method is called clutter_actor_create_pango_context(); while
it does not strictly depend on a ClutterActor, it is a good idea to
have it inside the ClutterActor API to map the current get_pango_context()
method and in case we start storing screen-specific data to the Actor
itself during the 1.x API cycle.
clutter/clutter-actor.c
clutter/clutter-actor.h