[Geany-Devel] Order of plugin signal connections

Matthew Brush mbrush at xxxxx
Fri May 15 02:51:20 UTC 2020

On 2020-05-14 5:48 p.m., Austin Green wrote:
> Hi Matthew,
> 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.
> Sure thing.
> 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.

Further to my previous message, you might also inspect the existing 
plugins which are blocking GTK+ signals and see why they're doing that, 
whether on purpose or on accident, and possible ways they can not do that.

Matthew Brush

More information about the Devel mailing list