Hi!
I try to handle events of actors on
clutter svn revision 1795, (0.5)
intel integrated graphic card ( 82852/855GM),
working 3D acceleration, 24bit colordepth.
g_signal_connect (stage, "button-press-event",G_CALLBACK (input_cb),NULL);
Listen to all stage signal.
In input_cb:
clutter_event_get_coords (event, &x, &y);
actor = clutter_stage_get_actor_at_pos (stage, x, y);
We get the activated actor.
But how about assigning signal callbacks directly to actors?
Because glReadPixels at _clutter_do_pic doesn't return the correct actor, but
stage everytime, it cannot be done.
A workaround is:
Emit the appropriate signals to the actors every time.
This case the button-leave-event is problematic,
we have to remember who was the previous actor.
And this is not a good way of complex event-handling anyway.
My question is:
I can assign signal callbacks directly to actors,
(which will never be called, since stage receive the signals
all the time).
Do anyone else experienced this problem too?
(maybe graphical card/driver related)
Best Regards:
Dénes
---------------------------------
Never miss a thing. Make Yahoo your homepage.