-
- Downloads
Add session backup and restore
The list of tabs per window is saved at different times, in particular when switching tab or active window. This way, an accurate picture of the current session is kept at all times, in a format described in the `.gschema.xml` file. When activating "app.quit" or when closing the last window, session backup is suspended to keep the current state as the one to be restored on next session. In general, session restore takes precedence over any command line argument. In particular, a restored file is opened with encoding and cursor position found in the recent history (or default values), even if it is specified on the command line with or without any option. Files specified on the command line that are not included in the list of files to restore are opened normally, from the state in which the application is at the end of the session restore, just as if they had been opened while the application was already running. Closes #21, see !108 for more details.
Showing
- mousepad/mousepad-application.c 29 additions, 6 deletionsmousepad/mousepad-application.c
- mousepad/mousepad-history.c 168 additions, 0 deletionsmousepad/mousepad-history.c
- mousepad/mousepad-history.h 5 additions, 0 deletionsmousepad/mousepad-history.h
- mousepad/mousepad-settings.c 16 additions, 0 deletionsmousepad/mousepad-settings.c
- mousepad/mousepad-settings.h 10 additions, 0 deletionsmousepad/mousepad-settings.h
- mousepad/mousepad-window.c 11 additions, 1 deletionmousepad/mousepad-window.c
- mousepad/org.xfce.mousepad.gschema.xml 18 additions, 0 deletionsmousepad/org.xfce.mousepad.gschema.xml
Loading