GNOME Bugzilla – Bug 745717
Update window state saving to follow best practices
Last modified: 2015-03-06 03:00:36 UTC
https://wiki.gnome.org/HowDoI/SaveWindowState
Created attachment 298673 [details] [review] mainWindow: Minor cleanup
Created attachment 298674 [details] [review] mainWindow: Do not save window position Best practices recommend leaving window placing to the WM[0], so only save/restore maximization state and size. [0] https://wiki.gnome.org/HowDoI/SaveWindowState
Created attachment 298675 [details] [review] mainWindow: Only save window state/size on quit Follow the recommendations[0] and cache window state and size until the application quits rather than directly saving every change to GSettings. [0] https://wiki.gnome.org/HowDoI/SaveWindowState
Created attachment 298676 [details] [review] mainWindow: Save size on GtkWidget::size-allocate ... ... instead of using GtkWidget::configure-event, according to best practices[0]. [0] https://wiki.gnome.org/HowDoI/SaveWindowState
Attachment 298673 [details] pushed as e6b3bd1 - mainWindow: Minor cleanup Attachment 298674 [details] pushed as ab935b8 - mainWindow: Do not save window position Attachment 298675 [details] pushed as 5c8c295 - mainWindow: Only save window state/size on quit Attachment 298676 [details] pushed as 9df9393 - mainWindow: Save size on GtkWidget::size-allocate ...