Bug 357950 - Memorize window width/height and restore at startup
Summary: Memorize window width/height and restore at startup
Status: RESOLVED FIXED
Alias: None
Product: gcompris
Classification: Applications
Component: general (other bugs)
Version First Reported In: git master
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Bruno Coudoin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-13 19:31 UTC by Holger Kaelberer
Modified: 2016-03-27 16:26 UTC (History)
3 users (show)

See Also:
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 (10.15 KB, patch)
2016-03-22 21:29 UTC, shashwat
Details
fixed some issues from the previous patch (9.52 KB, patch)
2016-03-23 12:26 UTC, shashwat
Details

Note You need to log in before you can comment on or make changes to this bug.
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.