Hi,

You can do a clutter_grab_pointer on the scrollbar widget in its button
press handler. Motion events and the release events will be received by the
scrollbar widget no matter where the mouse is.

Make sure you call clutter_ungrab_pointer in the release handler.

That should so the trick.

Cheers

2009/6/19 Bartosz Kostrzewa <[email protected]>

> I've got a little problem with catching release events. I have a
> scrollbar widget the handle of which animates (slightly) on click and
> release. The problem is that when using scrollbars one often mouses off
> the scrollbar once the handle has been clicked and dragging is in
> progress. This results in the consecutive release event not being caught
> by the scrollbar handle because the pointer is not above it.
>
> Short of adding special signal handlers for the stage and every single
> scrollbar on the stage, is there a way to make the release event
> propagate to the scrollbar handle's on_release handler? IE: to announce
> to clutter that this particular object is now globally reactive for this
> particular event? (as the event should propagate even if the mouse
> pointer is off-stage, for non-fullscreen applications)
>
> Thanks for any help you can offer!
> Bartek
> --
> To unsubscribe send a mail to 
> [email protected]<clutter%[email protected]>
>
>


-- 

Rajith
---------------------------------
www.pixelfactory.co.in

Reply via email to