On Sat, 2008-02-09 at 13:22 +0100, Johan Bilien wrote:

>  The problem is that the stage class used depends on the backend
> used.

yes.

> Can I know at compilation time which backend is used?

yes, using the CLUTTER_FLAVOUR macro; but...

> Is subclassing the stage against clutter best practices?

... yes again. it's not possible to subclass the stage, as it is a
singleton and the actual implementation very much backend-dependent.
it's like trying to subclass a GdkWindow - even though it might change
in the future (especially with multiple stages support).

also, setting a foreign window for the stage must call
clutter_actor_realize() on the stage to recreate the GL context, so
reparenting inside an overridden realize will not work even if it were
possible.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to