Implement the recommendations from https://wiki.gnome.org/HowDoI/SaveWindowState in the Application Class example.
3a499d6 gtk-demo: Add window size saving example
demos/gtk-demo/application.c | 151 +++++++++++++++++++++++++++----
demos/gtk-demo/application.ui | 11 +--
demos/gtk-demo/org.gtk.Demo.gschema.xml | 9 ++
3 files changed, 148 insertions(+), 23 deletions(-)
Upstream: git.gnome.org