mihajlv
mihajlv

Reputation: 2315

How to capture event on event box to detect mouse movement in gtk?

Right now I have a motion_notify_event on an event_box to track mouse coordinates. I can detect motion only if I click on the event_box does any one know how I can capture the event on the event_box when the mouse is over so I don't have to click on it. Thanks.

Upvotes: 2

Views: 2093

Answers (1)

Micah Carrick
Micah Carrick

Reputation: 10197

I think you want to listen to the "motion-notify-event" signal. Make sure you also enable the GDK_POINTER_MOTION_MASK flag.

Upvotes: 5

Related Questions