Merge lp://staging/~superscript18/scratch/bugfix-1390607 into lp://staging/~elementary-apps/scratch/scratch
Status: | Rejected |
---|---|
Rejected by: | Cody Garver |
Proposed branch: | lp://staging/~superscript18/scratch/bugfix-1390607 |
Merge into: | lp://staging/~elementary-apps/scratch/scratch |
Diff against target: |
220 lines (+59/-81) 3 files modified
data/scratch-text-editor.desktop (+1/-1) src/MainWindow.vala (+2/-46) src/Scratch.vala (+56/-34) |
To merge this branch: | bzr merge lp://staging/~superscript18/scratch/bugfix-1390607 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeremy Wootten | Needs Fixing | ||
Danielle Foré | Needs Fixing | ||
Review via email: mp+250651@code.staging.launchpad.net |
This proposal supersedes a proposal from 2015-02-10.
Description of the change
I have reworked the logic in launching Scratch. This new method is quite a bit cleaner and fixes several problems:
1. Scratch opens temporary (unsaved) documents when you open a second window. This is a pain because they are opened twice and cannot be closed in either instance without losing data.
2. When you opened a new window in Scratch, the previous window would try to get your attention (`window.present ()`) resulting in an unneeded red icon in Plank.
3. Middle-clicking on the Scratch icon in Plank did nothing. Now it should open a blank new window ready for you to work.
I've included elementary-design to decide if all this functionality is correct.
This fixes bugs:
Bug #1420549: middle-click on Plank does nothing
Bug #1390607: don't open unsaved files in new windows
Unmerged revisions
- 1451. By SuperScript
-
isn't needed anymore.
- 1450. By SuperScript
-
fixed tab/space to match elementary guidelines
- 1449. By SuperScript
-
Redid Scratch's startup procedure
* Segfault when closing a second new window with nothing open while having a file open in the first window
*Can confirm that unsaved files don't open in new windows.