Cleans up use of deprecated APIs and child properties, and changes the manually built menus to using GMenuModel.