Gtk2/3: Fix menu item shortcuts when adding menu items at runtime or after setting the form's Menu.