Re: [clutter] Clutter-trunk widget event handlers

2007-11-15 Thread Murray Cumming
I am also having problems with actor signals. I get the button-press and button-release signals, but not, for instance, the motion-event, enter-event and leave-event signals. I attached my simple test code. I don't see an obvious error. -- [EMAIL PROTECTED] www.murrayc.com www.openismus.com /*

Re: [clutter] Clutter-trunk widget event handlers

2007-11-15 Thread Emmanuele Bassi
On Thu, 2007-11-15 at 14:23 +0100, Murray Cumming wrote: I am also having problems with actor signals. I get the button-press and button-release signals, but not, for instance, the motion-event, enter-event and leave-event signals. I attached my simple test code. I don't see an obvious

Re: [clutter] Clutter-trunk widget event handlers

2007-11-15 Thread Matthew Allum
You need to call clutter_enable_motion_events (); - its a performance opt that maybe needs to work the other way around (be explicity disabled rather than enabled). Note the new event stuff in trunk is heavily in flux, thats why its not documented yet (it still could change heavily). Also could

Re: [clutter] Clutter-trunk widget event handlers

2007-11-15 Thread Murray Cumming
On Thu, 2007-11-15 at 13:34 +, Matthew Allum wrote: You need to call clutter_enable_motion_events (); - its a performance opt that maybe needs to work the other way around (be explicity disabled rather than enabled). Thanks. I guess that this (and clutter_actor_set_reactive()) should be

Re: [clutter] Clutter-trunk widget event handlers

2007-10-31 Thread Kate Alhola
ext Emmanuele Bassi wrote: On Tue, 2007-10-30 at 16:31 +0200, Kate Alhola wrote: actor_class-button_press_event = clutter_button_event; actor_class-button_release_event = clutter_button_event; this is all that you need. I personally would also handle the enter and leave events

Re: [clutter] Clutter-trunk widget event handlers

2007-10-31 Thread Karoliina Salminen
Hi, I made some additions, and now the same button widget has timeline and highlight effect that is made visible on button click and fades out on button release. Best Wishes, Karoliina http://www.karoliinasalminen.com/blog On 10/31/07, Kate Alhola [EMAIL PROTECTED] wrote: ext Emmanuele

[clutter] Clutter-trunk widget event handlers

2007-10-30 Thread Kate Alhola
I am implementing button and scroll widgets with clutter trunk. Is there recommended methods to set up signal handlers ( callbacks ). I inherit button widget from actor and i set it reactive and then overdefine actor button event handlers. clutter_button_class_init (ClutterButtonClass *klass)

Re: [clutter] Clutter-trunk widget event handlers

2007-10-30 Thread Emmanuele Bassi
On Tue, 2007-10-30 at 16:31 +0200, Kate Alhola wrote: actor_class-button_press_event = clutter_button_event; actor_class-button_release_event = clutter_button_event; this is all that you need. I personally would also handle the enter and leave events signal class handlers. Just so

Re: [clutter] Clutter-trunk widget event handlers

2007-10-30 Thread Neil Jagdish Patel
Hi, On Tue, 2007-10-30 at 14:58 +, Emmanuele Bassi wrote: On Tue, 2007-10-30 at 16:31 +0200, Kate Alhola wrote: actor_class-button_press_event = clutter_button_event; actor_class-button_release_event = clutter_button_event; this is all that you need. I personally would also