Ticket #1174 (closed defect: invalid)
Document Double-Click events in EventM
|Reported by:||guest||Owned by:||somebody|
|Component:||general (Gtk+, Glib)||Version:||0.10.1|
In gtk2hs 0.10.1, the documentation for the EventM monad (http://www.haskell.org/gtk2hs/docs/devel/Graphics-UI-Gtk-Gdk-EventM.html) fails to mention double-click events.
Experimentation reveals that double-clicks are delivered as two consecutive buttonPressEvents.
This should be documented.
It might also be worth enhancing the EventM monad to provide this information specifically, attaching it to the second buttonPressEvent that currently indicates a double-click.
The current protocol (that identifies double-clicks by two consecutive buttonPressEvents) should probably not be altered in order to maintain compatibility with current code.