lock() prevents further changes to the accelerator entries in the calling GtkAccelGroup.
To prevent further keys being altered, added to or removed from a single existing GtkAccelEntry, use lock_accelerators() .