[Github-comments] [geany/geany-plugins] Addons: Implement deselect with single click (#481)

Enrico Tröger notifications at xxxxx
Sun Aug 28 17:36:34 UTC 2016


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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/481
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160828/f3663d64/attachment.html>


More information about the Github-comments mailing list