Fix GTK default keybindings being still active after being unbound
commita0dc8af9c4238fe435c7f45ef4c39c358b6803d2
authorColomban Wendling <ban@herbesfolles.org>
Wed, 20 Feb 2013 23:57:06 +0000 (21 00:57 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Thu, 21 Feb 2013 00:31:38 +0000 (21 01:31 +0100)
tree198188c71d523d0af62341796c4f2f0f5bbc75fe
parent3c2dc547cdc9343573765ec0502effc00a61f39b
Fix GTK default keybindings being still active after being unbound

If we provide an AccelGroup when creating a menu item using a sock ID,
it installs the GTK default accelerator, accelerator we can't remove
since we don't know about it.  So, don't give an AccelGroup so GTK
don't install it's own accelerator.

This fix also required to properly update the accelerator on some item
we used to ignore since the update didn't work anyway (since the GTK
accelerator was displayed instead).

Note that this doesn't fix the fact the editor popup menu accelerators
are never updated after startup so they don't get updated before
restart after changing a keybinding in the preferences.  This is a
separate (and less problematic) issue due to a simple lack of update.

Closes #1912683 and #3599251.
data/geany.glade
doc/geany.txt
src/keybindings.c