Florent wrote:
>>
>> I use two mainloops. One is the glib mainloop for clutter and the
>> other one is for my application. This works very well and makes sure
>> the animations run even when the real mainloop is kind of busy.
>>
>
> Very interesting, could you please develop how you set up this ?

o Open a thread and start the clutter mainloop in it
o Start your own mainloop
o When you want to change clutter stuff, call a callback using
  gobject.add_idle.

You can find my code at svn://svn.freevo.org/kaa/trunk/candy
The thread jump is in stage.py

To run the test file you also need kaa.base and kaa.imlib2. You can
get the whole kaa tree from svn://svn.freevo.org/kaa/trunk

BTW, you can hock up our mainloop (in kaa.base) into twisted.


HTH. If you have questions you can also ask me at #freevo at
irc.gnu.org. Questions about kaa.candy only to me, other questions can
also be answered by Tack there.

kaa.candy is the ui core for the new Freevo render engine. Some code
running Freevo with clutter can be found in the freevo svn
svn://svn.freevo.org/freevo/branches/candy


Dischi

-- 
"AOL for Dummies" is kind of redundant, don't you think?
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to