Merge lp://staging/~jeremywootten/pantheon-files/restore-state into lp://staging/~elementary-apps/pantheon-files/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Cody Garver | ||||
Approved revision: | 1498 | ||||
Merged at revision: | 1500 | ||||
Proposed branch: | lp://staging/~jeremywootten/pantheon-files/restore-state | ||||
Merge into: | lp://staging/~elementary-apps/pantheon-files/trunk | ||||
Diff against target: |
1299 lines (+348/-174) 17 files modified
libcore/gof-directory-async.vala (+21/-25) libcore/gof-file.c (+3/-3) libwidgets/Animations.vala (+2/-2) libwidgets/BreadcrumbsElements.vala (+2/-2) libwidgets/LocationBar.vala (+53/-33) schemas/org.pantheon.files.gschema.xml (+15/-0) src/Application.vala (+9/-8) src/View/LocationBar.vala (+5/-2) src/View/ViewContainer.vala (+33/-12) src/View/Window.vala (+127/-18) src/fm-abstract-icon-view.c (+2/-2) src/fm-columns-view.c (+6/-6) src/fm-directory-view.c (+17/-21) src/gof-window-slot.c (+13/-24) src/marlin-window-columns.c (+34/-14) src/marlin-window-columns.h (+2/-2) src/marlin.vapi (+4/-0) |
||||
To merge this branch: | bzr merge lp://staging/~jeremywootten/pantheon-files/restore-state | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cody Garver (community) | Approve | ||
Review via email: mp+217733@code.staging.launchpad.net |
Commit message
Implements the saving and restoring of the notebook tabs to fix bug #1232112.
For each tab, the view mode and the root folder are restored.
In the case of Miller view, the view is expanded to its previous state.
The previously active tab is selected.
File selections are not restored.
Undisplayable folders (non-existent or no permission) are not saved.
State is saved in two Preference.settings keys.
An additional key was added allowing tab restoration to be turned off (on by default).
A number of other changes and bug fixes were made to allow the unusually rapid creation of multiple slots and views and avoid associated timing problems. The opportunity was taken to clean up the associated code a little.
Description of the change
Implements the saving and restoring of the notebook tabs.
For each tab, the view mode and the root folder are restored.
In the case of Miller view, the view is expanded to its previous state.
The previously active tab is selected.
File selections are not restored.
Undisplayable folders (non-existent or no permission) are not saved.
State is saved in two Preference.settings keys.
An additional key was added allowing tab restoration to be turned off (on by default).
A number of other changes and bug fixes were made to allow the unusually rapid creation of multiple slots and views and avoid associated timing problems. The opportunity was taken to clean up the associated code a little.
The first time I ran this, it opened in /home instead of /home/$USER for some reason
175,198: looks like superfluous blank lines may have made it in
230: end of comment needs a space
454: code style
844-845: comment style
869, 871: code style
906: code style
916: does this need a blank line after? stacked comments look weird
923: unrelated commented out code
945, 951: code style
970: commented out code