For this to work, we need to connect to the "button-press-event" for each document and then differentiate between single and double clicks, using a timeout handler which is triggered first after the GTK double-click-time has passed, i.e. GTK won't recognise the event as part of a double click.
I didn't find a easier solution to differentiate between single and double click. Better ideas are welcome.
Closes #445. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/481
-- Commit Summary --
* Addons: Implement unselect with single click * Make 'single click deselect' feature configurable
-- File Changes --
M addons/src/addons.c (45) M addons/src/ao_markword.c (123) M addons/src/ao_markword.h (6)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/481.patch https://github.com/geany/geany-plugins/pull/481.diff