[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Mouse Motion




Which signals are you masking for? 

GDK_POINTER_MOTION_MASK?
GDK_POINTER_MOTION_HINT_MASK?

 -ERic


---SEGV <mlepage@cgocable.net> wrote:
>
> I'm having a devil of a time getting mouse motion to work with my
drawing area
> widget. I've followed the scribble example to the best of my
ability. That is,
> I've:
> 
> 1) connected my signal function to the drawing area widget
> 2) ensured that those events are masked properly
> 3) written a mouse motion callback that prints out a line
> 
> What happens is, my callback only seems to be called when the
pointer first
> enters my widget. It doesn't get called repeatedly as I move the
pointer around.
> 
> Now, I have a timeout callback being called 30 times per second. I'm
not sure if
> that interferes with the mouse motion (I can't see why), but I can
see how that
> might make it appear that I only get them when first entering the
widget (like,
> if they are cut off by the timeout?).
> 
> Any ideas? I'd like to do lasso selection, dragging, autoscrolling,
etc. Not too
> hard, but difficult when you can't get motion notify events!
> 
> -- 
> SEGV    http://www.cgocable.net/~mlepage/
> 
> 
> -- 
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com
with 
>                        "unsubscribe" as the Subject.
> 
> 	Mailing list concerns should be mailed to <listmaster@redhat.com>
> 
> 

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]