On Wed, 2009-11-11 at 14:56 +0100, Vincent Lauria wrote:
> void
> load_finished (
> ClutterActor *image,
> GParamSpec *args1,
> gpointer data)
> {
> printf("load_finished()\n");
> clutter_actor_set_size (image, 100, 100);
> }
the signature for this signal is wrong. please, check the documentation.
> int main(int argc, char **argv)
> {
> ClutterActor *stage;
> ClutterColor black = {0x00, 0x00, 0x00, 0xff};
>
> clutter_init (&argc, &argv);
> g_thread_init (NULL);
this is wrong.
the order for calling g_thread_init() is important. the correct order
is:
g_thread_init (NULL);
clutter_threads_init ();
clutter_init (&argc, &argv);
> image = clutter_texture_new ();
> clutter_texture_set_filter_quality ((ClutterTexture *)
> image,
> CLUTTER_TEXTURE_QUALITY_MEDIUM);
Medium is already the default.
> clutter_texture_set_load_async ((ClutterTexture *)
> image, TRUE);
don't use C casting: use the proper macros.
for reference on threading, please see:
tests/interactive/test-threads.c;
for reference on asynchronous loading, please see:
tests/interactive/test-texture-async.c
ciao,
Emmanuele.
--
To unsubscribe send a mail to [email protected]