Ticket #1174 (closed defect: invalid)

Opened 8 years ago

Last modified 4 years ago

Document Double-Click events in EventM

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.10.2
Component: general (Gtk+, Glib) Version: 0.10.1
Keywords: Cc:


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.

Change History

Changed 8 years ago by guest

  • version changed from 0.10.2 to 0.10.1

Changed 4 years ago by dmwit

  • status changed from new to closed
  • resolution set to invalid

The buttonPressEvent operates in the EventM EButton monad, which the documentation already says allows use of eventClick :: EventM EButton Click to tell whether it was a single, double, or triple click.

Note: See TracTickets for help on using tickets.