[Geany-Devel] Order of plugin signal connections
austin.green at xxxxx
Fri May 15 00:48:40 UTC 2020
On Thu, 14 May 2020 16:20:58 -0700
Matthew Brush <mbrush at codebrainz.ca> wrote:
> Can you elaborate on what you are trying to do specifically? There may
> be a better way.
The plugin 'recordkey', and possibly others, connects to the 'key-press-event' signal. Possibly depending on the order of plugins being loaded, or possibly not, but either way: some of the keys bound to other plugins are lost to the view of 'recordkey', presumably because Geany processes all of the keybindings in its handling of the 'key-press-event' signal. The order of loading plugins cannot be controlled anyway, as the user may load/unload at any time. Causing Geany to emit a new signal, on receipt of the 'key-press-event' signal, but prior to any processing, allows any plugin (that connects to the new signal) to view (but not suppress) all key press events.
I'll be pleased if there is another way which doesn't involve changing Geany, it will save me some work. ;) And of course it's always good not to have to bump the ABI version.
More information about the Devel