[maemo-developers] HildonAnimationActor and button events

From: Piñeiro apinheiro at igalia.com
Date: Fri Oct 23 14:01:56 EEST 2009
From: Cornelius Hald <hald at icandy.de>

> the documentation of HildonAnimationActor states that by design it is
> not reactive. Meaning that actors do not receive motion or button
> events.
> The thing is, I want to get notified if someone clicks on my actor, so
> how can I do this?

Well, as the documentation says, and you have just said, by design
this is not possible.

> I have a half working solution: I'm using a signal emission hook to
> catch all button events that have been emitted. Then I translate the
> button press coordinates into coordinates of the main window. With those
> coordinates I check whether or not the click was on my actor or not.
> The problem is, that the signal is propagated further, so if there is,
> for example, a button under my actor it will also receive the button
> clicked event. I don't want that. I want that it stops after being
> handled by my actor. I tried using g_signal_stop_emission() inside the
> signal hook function, but glib tells me that this is not allowed.
> I'm really lost here, help would be very much appreciated :)

AFAIK, the real purpose of HildonAnimationActor is just what his name
indicates, a way to introduce animations on the hildon applications
with the help of the window manager, so in fact, it shouldn't be
required the feature you want.

Why do you want to interact with this actor? What do you want to get?

API (apinheiro at igalia.com)
More information about the maemo-developers mailing list