Re: [gedit-list] Plugin priority





Jesse van den Kieboom wrote:

Op 28 feb 2009, om 09:14 heeft Jon Walsh het volgende geschreven:

Hi,

I've recently created a new plugin (Multi-edit), but it's currently mildly conflicting with "smart spaces".

I was wondering if there's anyway to set a plugins priority? i.e. Which plugin handles an event first (assuming they don't pass on the event).

There is not, plugins should not use the same key bindings (at least not the well known ones). Something I also noticed with Multi-edit was that Ctrl+Shift+arrow was overriden, severly disrupting my workflow (I had to turn the plugin off).



I'm guessing a solution might be to connect to the "event" signal that is triggered before any of the more specific events. Though that's still assuming the previous plugin hasn't done the same thing.

Yeah, you should pick other key bindings :( It's a problem in general since more and more plugins use keybindings next to all the bindings that already are taken by either gedit itself or gtk+.
The problem I have doesn't actually relate to shortcuts unfortunately. Smart Spaces takes control over the backspace (and rightfully so) but in doing so, it causes Multi-edit mode to exit. If Multi-edit handles the event first, there won't be a conflict since it will still pass on the backspace (to Smart Spaces) when in single-edit mode.

For Ctrl+Shift+Arrow, that's unfortunately ironic since as of 1.0, all shortcuts are configurable except that one :P. I actually didn't notice it was different to Shift+Arrow since I don't use it myself. So I'll be sure to make it configurable in the next release.


Also: Does anyone know where I can find a reference for gtk.keysyms?


Actually, I usually just look in the gdkkeysyms header file, maybe there are better ways though.
Found it, thanks.

Thanks,
Jon
_______________________________________________
gedit-list mailing list
gedit-list gnome org
http://mail.gnome.org/mailman/listinfo/gedit-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]