Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- main.qml.org 2012-08-04 15:52:47.871304040 +0100
- +++ main.qml 2012-08-04 15:47:54.631316695 +0100
- @@ -52,13 +52,8 @@
- }
- onAuthenticationComplete: {
- - var session = sessionButton.dataForIndex(sessionButton.currentIndex);
- - console.log("session: " + session);
- - if (session == "") {
- - session = "default";
- - }
- if(greeter.authenticated) {
- - greeter.startSessionSync(session);
- + loginAnimation.start();
- } else {
- feedbackLabel.text = i18n("Sorry, incorrect password. Please try again.");
- feedbackLabel.showFeedback();
- @@ -68,6 +63,26 @@
- }
- }
- + function doSessionSync() {
- + var session = sessionButton.dataForIndex(sessionButton.currentIndex);
- + if (session == "") {
- + session = "default";
- + }
- + xhandler.setRootImage();
- + greeter.startSessionSync(session);
- + }
- +
- + ParallelAnimation {
- + id: loginAnimation
- + NumberAnimation { target: welcomeLabel; property: "opacity"; to: 0; duration: 400; easing.type: Easing.InOutQuad }
- + NumberAnimation { target: feedbackLabel; property: "opacity"; to: 0; duration: 400; easing.type: Easing.InOutQuad }
- + NumberAnimation { target: usersList; property: "opacity"; to: 0; duration: 400; easing.type: Easing.InOutQuad }
- + NumberAnimation { target: loginButtonItem; property: "opacity"; to: 0; duration: 400; easing.type: Easing.InOutQuad }
- + NumberAnimation { target: sessionButton; property: "opacity"; to: 0; duration: 400; easing.type: Easing.InOutQuad }
- + NumberAnimation { target: powerBar; property: "opacity"; to: 0; duration: 400; easing.type: Easing.InOutQuad }
- + onCompleted: doSessionSync()
- + }
- +
- Component.onCompleted: {
- setTabOrder([usersList, loginButtonItem, sessionButton, suspendButton, hibernateButton, restartButton, shutdownButton]);
- usersList.forceActiveFocus();
Advertisement
Add Comment
Please, Sign In to add comment