Bug 357950

Summary: Memorize window width/height and restore at startup
Product: [Applications] gcompris Reporter: Holger Kaelberer <holger.k>
Component: generalAssignee: Bruno Coudoin <bruno.coudoin>
Status: RESOLVED FIXED    
Severity: wishlist CC: holger.k, jazeix, shashwatdixit124
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: This patch adds the functionality of saving width and height of the window when user quits the application and restores it at startup
fixed some issues from the previous patch

Description Holger Kaelberer 2016-01-13 19:31:51 UTC
Currently the window-size is set to the screen dimensions when GCompris is not started in fullscreen mode. On desktop platforms this is annoying because a user might want to launch gcompris with a smaller window-size.
It would improve usability in this respect if the last geometry would be stored in the ApplicationSettings (group "Internal") and restored at subsequent startups (unless started in fullscreen mode) for desktop platforms.

Reproducible: Always

Steps to Reproduce:
1. Start GCompris in non-fullscreen mode
2. resize the window to smaller geometry
3. stop and start the application again


Actual Results:  
application window covers again the whole screen

Expected Results:  
The window should have the same size as it had when it was closed the last time.
Comment 1 shashwat 2016-03-22 21:29:01 UTC
Created attachment 98028 [details]
This patch adds the functionality of saving width and height of the window when user quits the application and restores it at startup

values are stored in gcompris config file
Comment 2 shashwat 2016-03-23 12:26:55 UTC
Created attachment 98042 [details]
fixed some issues from the previous patch

this is a whole new patch, it does not depend depend on previous one
Comment 3 Jazeix Johnny 2016-03-25 08:03:00 UTC
The corresponding review request can be found at https://git.reviewboard.kde.org/r/127471/
Comment 4 Jazeix Johnny 2016-03-27 16:26:41 UTC
Submitted with commit 0657eb50742cc421dbc19015f87a98bd4d670cd0 by Johnny Jazeix on behalf of Shashwat Dixit to branch master.