[maemo-developers] HildonAnimationActor and button events
From: Cornelius Hald hald at icandy.deDate: Fri Oct 23 11:41:59 EEST 2009
- Previous message: HildonAnimationActor and transparency
- Next message: HildonAnimationActor and button events
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, 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? 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 :) Thanks! Conny
- Previous message: HildonAnimationActor and transparency
- Next message: HildonAnimationActor and button events
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]