Merge lp:~mzanetti/unity/8-lockscreen-design-tweaks into lp:unity/8.0

Proposed by Michael Zanetti
Status: Merged
Approved by: Nicolas d'Offay
Approved revision: no longer in the source branch.
Merged at revision: 42
Proposed branch: lp:~mzanetti/unity/8-lockscreen-design-tweaks
Merge into: lp:unity/8.0
Diff against target: 66 lines (+15/-3)
3 files modified
Greeter/Lockscreen.qml (+7/-1)
Shell.qml (+1/-1)
tests/qmltests/Greeter/tst_Lockscreen.qml (+7/-1)
To merge this branch: bzr merge lp:~mzanetti/unity/8-lockscreen-design-tweaks
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Nicolas d'Offay (community) Approve
Review via email: mp+171089@code.launchpad.net

Commit message

don't clear lockscreen directly after login, its still visible in the fading animation. Clear it when it is requested to be shown instead

this also removes a colon that design didn't like and updates tests to make sure the above works

To post a comment you must log in.
Revision history for this message
Nicolas d'Offay (nicolas-doffay) wrote :

On output:
file:///home/phablet/shell/Greeter/Lockscreen.qml:46: TypeError: Cannot call method 'clear' of null

Perhaps also a good idea to add some commentary regarding the reset() function since it's usage looks a bit suspect.

review: Needs Fixing
Revision history for this message
Michael Zanetti (mzanetti) wrote :

> On output:
> file:///home/phablet/shell/Greeter/Lockscreen.qml:46: TypeError: Cannot call
> method 'clear' of null

Fixed. Well spotted!

> Perhaps also a good idea to add some commentary regarding the reset() function
> since it's usage looks a bit suspect.

Done

Revision history for this message
Nicolas d'Offay (nicolas-doffay) wrote :

Looks good to me now!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Greeter/Lockscreen.qml'
--- Greeter/Lockscreen.qml 2013-06-06 12:18:34 +0000
+++ Greeter/Lockscreen.qml 2013-06-24 15:37:35 +0000
@@ -41,7 +41,14 @@
41 signal cancel()41 signal cancel()
42 signal emergencyCall()42 signal emergencyCall()
4343
44 onRequiredChanged: {
45 if (required && pinPadLoader.item) {
46 pinPadLoader.item.clear(false);
47 }
48 }
49
44 function reset() {50 function reset() {
51 // This causes the loader below to destry and recreate the source
45 pinPadLoader.resetting = true;52 pinPadLoader.resetting = true;
46 pinPadLoader.resetting = false;53 pinPadLoader.resetting = false;
47 }54 }
@@ -140,7 +147,6 @@
140 }147 }
141 if (LightDM.Greeter.authenticated) {148 if (LightDM.Greeter.authenticated) {
142 root.unlocked();149 root.unlocked();
143 pinPadLoader.item.clear(false);
144 } else {150 } else {
145 pinPadLoader.item.clear(true);151 pinPadLoader.item.clear(true);
146 }152 }
147153
=== modified file 'Shell.qml'
--- Shell.qml 2013-06-20 15:24:23 +0000
+++ Shell.qml 2013-06-24 15:37:35 +0000
@@ -380,7 +380,7 @@
380 } else {380 } else {
381 lockscreen.alphaNumeric = true381 lockscreen.alphaNumeric = true
382 }382 }
383 lockscreen.placeholderText = i18n.tr("Please enter %1:").arg(text);383 lockscreen.placeholderText = i18n.tr("Please enter %1").arg(text);
384 lockscreen.show();384 lockscreen.show();
385 }385 }
386 }386 }
387387
=== modified file 'tests/qmltests/Greeter/tst_Lockscreen.qml'
--- tests/qmltests/Greeter/tst_Lockscreen.qml 2013-06-06 12:18:34 +0000
+++ tests/qmltests/Greeter/tst_Lockscreen.qml 2013-06-24 15:37:35 +0000
@@ -187,8 +187,8 @@
187 unlockedCheckBox.checked = false187 unlockedCheckBox.checked = false
188 LightDM.Greeter.authenticate(data.username)188 LightDM.Greeter.authenticate(data.username)
189189
190 var inputField = findChild(lockscreen, "pinentryField")
190 if (data.alphanumeric) {191 if (data.alphanumeric) {
191 var inputField = findChild(lockscreen, "pinentryField")
192 mouseClick(inputField, units.gu(1), units.gu(1))192 mouseClick(inputField, units.gu(1), units.gu(1))
193 typeString(data.password)193 typeString(data.password)
194 keyClick(Qt.Key_Enter)194 keyClick(Qt.Key_Enter)
@@ -200,6 +200,12 @@
200 }200 }
201 }201 }
202 tryCompare(unlockedCheckBox, "checked", data.unlockedSignal)202 tryCompare(unlockedCheckBox, "checked", data.unlockedSignal)
203 if (!data.unlockedSignal) {
204 // make sure the input is cleared on wrong input
205 tryCompareFunction(function() {return inputField.text.length == 0}, true)
206 } else {
207 tryCompareFunction(function() {return inputField.text.length > 0}, true)
208 }
203 }209 }
204 }210 }
205}211}

Subscribers

People subscribed via source and target branches

to all changes: