Re: gtk_drawing_area and scroll events

2007-07-23 Thread Damien Caliste
Hello, Le 21/07/2007, Martin Fischer <[EMAIL PROTECTED]> a écrit : > With that code scroll_event are emitted when the mouse wheel is > turned, but why? I hope I'm not speeking wrong, but the scroll event is activated either by the GDK_BUTTON_PRESS_MASK or the GDK_SCROLL_MASK. So puting one of them

gtk_drawing_area and scroll events

2007-07-21 Thread Martin Fischer
Hi, currently I'm trying to add support for wheel mice to an application I'm maintaining. Due to the structure, I'd prefer to process the wheel events as button press events. Here is the code for creating the widget in question: /*- Event handlers --*/ static gint draw_scroll_event( G