Scratch doesn't save tab order [$50]
Bug #1080904 reported by
Mario Daniel Ruiz Saavedra
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scratch |
Fix Released
|
Low
|
The Lemon Man |
Bug Description
1. Open various files with Scratch
2. Rearrange the tabs
3. Close & Open Scratch
4. Tabs rearrangement is not preserved
I think the exact state of the app should be preserved.
Related branches
lp://staging/~lemonboy/scratch/tab-order
- Gero.Bare (community): Approve
-
Diff: 68 lines (+12/-21)2 files modifiedsrc/MainWindow.vala (+5/-19)
src/Widgets/DocumentView.vala (+7/-2)
Changed in scratch: | |
status: | New → Confirmed |
Changed in scratch: | |
importance: | Undecided → Wishlist |
milestone: | none → 1.2 |
Changed in scratch: | |
milestone: | 2.0 → 2.1 |
Changed in scratch: | |
milestone: | 2.0.1 → 2.1 |
Changed in scratch: | |
milestone: | isis-beta1 → feature-future |
Changed in scratch: | |
status: | In Progress → Confirmed |
Changed in scratch: | |
status: | Confirmed → Fix Committed |
Changed in scratch: | |
milestone: | feature-future → freya-rc1 |
Changed in scratch: | |
assignee: | SuperScript (superscript18) → nobody |
importance: | Wishlist → Low |
Changed in scratch: | |
milestone: | freya-rc1 → none |
tags: | added: bounty |
summary: |
- Scratch doesn't save tab order + Scratch doesn't save tab order [$50] |
Changed in scratch: | |
status: | Confirmed → In Progress |
assignee: | nobody → MarkyC (mmmarcooo) |
Changed in scratch: | |
milestone: | none → loki-beta1 |
information type: | Public → Public Security |
information type: | Public Security → Public |
Changed in scratch: | |
assignee: | MarkyC (mmmarcooo) → nobody |
assignee: | nobody → The Lemon Man (lemonboy) |
Changed in scratch: | |
status: | In Progress → Fix Committed |
Changed in scratch: | |
milestone: | loki-beta1 → loki-alpha1 |
Changed in scratch: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have looked around at the behavior of this bug. It appears that the documents are arranged in the order of opening because of how they are stored in `DocumentView. docs`. I think that `DocumentView` needs to keep it's `.docs` GLib.List in order of tabs.
Also, the scroll position of each document is not preserved. I think `Document` needs a `get_state` method to retrieve it's path, scroll X/Y and current language. I am adding a bug for scroll position.