[Geany-devel] Super modifier in keybindings - Re: Strange Geany behavior

Nick Treleaven nick.treleaven at xxxxx
Tue Aug 11 13:43:27 UTC 2009

On Tue, 11 Aug 2009 23:37:44 +1000
Lex Trotman <elextr at gmail.com> wrote:

> >> in GTK.  It seems to me that keybindings don't actually need to be set
> >> as accelerators since on_key_press_event catches them all first, and
> >> that would work around the GTK problem.
> >
> > Yes, but this provides handy information to the user so they don't need
> > to lookup the keybinding.
> Of course, it should update the accelerator on the menu!!!
> But it actually doesn't until I close and re-open Geany, and then some
> seem to be pretty persistent, if a keybinding of the standard ones eg
> Ctrl o for open is re-assigned it actually still says Ctrl o on the
> open menu item but executes the re-assigned action even after closing
> and re-opening Geany.

Yes, I think this is explained in the manual. Stock icons have a fixed

> As to how to do it at runtime I'm not sure, but can't you just call
> gtk_widget_accelerator_remove with the old one and then
> gtk_accelerator_add with the new one?

Nope ;-)


More information about the Devel mailing list