Merge lp:~elementary-apps/screenshot-tool/check-for-scribbles into lp:~elementary-apps/screenshot-tool/trunk

Proposed by Danielle Foré
Status: Needs review
Proposed branch: lp:~elementary-apps/screenshot-tool/check-for-scribbles
Merge into: lp:~elementary-apps/screenshot-tool/trunk
Diff against target: 21 lines (+9/-3)
1 file modified
src/ScreenshotWindow.vala (+9/-3)
To merge this branch: bzr merge lp:~elementary-apps/screenshot-tool/check-for-scribbles
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+316358@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

It fixes the issue conceal feature which should be concealed and restored text.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

It would be better to stop the previous font ever being set to the scribble font, if possible - although this code should be kept as a backstop.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

A similar but slightly different solution is included in the branch lp:~jeremywootten/screenshot-tool/fix-1438250-include-child-windows. In my case the problem was caused by the program crashing during development but the linked bug here does not mention any crashes (although they could have been silent). My branch reduces the time the spent in the redacted state a little.

Unmerged revisions

281. By Danielle Foré

check that we're not setting back to the scribble font

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/ScreenshotWindow.vala'
2--- src/ScreenshotWindow.vala 2017-01-27 20:52:33 +0000
3+++ src/ScreenshotWindow.vala 2017-02-03 17:43:45 +0000
4@@ -450,9 +450,15 @@
5 settings.set_string ("monospace-font-name", "Redacted Script Light 10");
6 settings.set_string ("document-font-name", "Redacted Script Regular 10");
7 } else {
8- settings.set_string ("font-name", prev_font_regular);
9- settings.set_string ("monospace-font-name", prev_font_mono);
10- settings.set_string ("document-font-name", prev_font_document);
11+ if (prev_font_regular != "Redacted Script Regular 9") {
12+ settings.set_string ("font-name", prev_font_regular);
13+ settings.set_string ("monospace-font-name", prev_font_mono);
14+ settings.set_string ("document-font-name", prev_font_document);
15+ } else {
16+ settings.reset ("font-name");
17+ settings.reset ("monospace-font-name");
18+ settings.reset ("document-font-name");
19+ }
20 }
21 }
22

Subscribers

People subscribed via source and target branches