This will make the menuitems pick up matching accel map entries automatically. Currently, nothing creates such accel map entries, though.
This GtkMenuItem subclass (and GActionObserver implementation) contains all the knowledge necessary for converting a GMenuModel item description into a GtkMenuItem. Remove much of the code that used to do this from gtkapplicationwindow.c.