Implement the recommendations from https://wiki.gnome.org/HowDoI/SaveWindowState in the Application Class example.
Turn the 'color' action in gtk3-demo-application into an action that is backed by a setting.