GNOME Bugzilla – Bug 340014
The last un-maximized window size isn't saved
Last modified: 2006-08-11 10:15:46 UTC
Please describe the problem: If you open Totem, maximize it, and close it, the next time you open it, you won't be able to un-maximize it. The window will just be - say - 1024x768 but be moveable. The correct way to handle it is to save the size of the last non-maximized window, and restore it on un-maximize. Evolution used to have the same problem and they fixed it very recently, so it might be easier for you to understand what I mean by reading Evolution's bug #243962. Steps to reproduce: 1. Open Totem 2. Maximize its window 3. Close Totem 4. Open Totem again 5. Click on the un-maximize icon in Metacity Actual results: The window moves a little bit, but stays at the same size it was before. Expected results: The window size should be restored to the latest non-maximized size. Does this happen every time? Yes. Other information:
Makes complete sense. We should also save whether the window was maximised before exiting.
*** Bug 342685 has been marked as a duplicate of this bug. ***
*** Bug 342839 has been marked as a duplicate of this bug. ***
*** Bug 343860 has been marked as a duplicate of this bug. ***
Created attachment 70699 [details] [review] totem-save-state-in-file.patch An example of saving window state in a file, rather than in GConf.
2006-08-11 Bastien Nocera <hadess@hadess.net> * configure.in: up the requirements to glib 2.8, sorry * data/totem.schemas.in: remove the window width, height and sidebar shown entries, and moved them to a local file * src/totem-private.h: * src/totem-sidebar.c: (totem_sidebar_setup): * src/totem-sidebar.h: * src/totem.c: (totem_action_save_size), (totem_action_save_state), (totem_action_exit), (window_state_event_cb), (totem_setup_window), (main): Save the video widget's width, height, maximised state and whether the sidebar is shown in a local file, rather than saving those (wrongly) in GConf (Closes: #340014)
Thank you very much for that. Out of curiosity, is there any reason why you chose to save those information in a text file instead of using gconf as you did before ?
See http://live.gnome.org/GnomeGoalsSaveState GConf is not for saving state, just preferences