[gnome-shell/wip/gdm-shell] wip: fix sign in button (needs squash)



commit b7f7714310ff1dcf92ac82cf9b1fcba1eba117bc
Author: Ray Strode <rstrode redhat com>
Date:   Fri Jul 1 16:01:42 2011 -0400

    wip: fix sign in button (needs squash)
    
    we weren't blocking sign in until the user entered their password
    before.

 js/ui/loginDialog.js |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/loginDialog.js b/js/ui/loginDialog.js
index 6f69759..6a985a8 100644
--- a/js/ui/loginDialog.js
+++ b/js/ui/loginDialog.js
@@ -517,17 +517,27 @@ LoginDialog.prototype = {
                          label:  _("Sign In") }];
 
         this._promptEntryActivateCallbackId = this._promptEntry.clutter_text.connect('activate',
-                                                              Lang.bind(this, function() {
-                                                                  hold.release();
-                                                              }));
+                                                                                     Lang.bind(this, function() {
+                                                                                         hold.release();
+                                                                                     }));
         hold.connect('release', Lang.bind(this, function() {
                          this._promptEntry.clutter_text.disconnect(this._promptEntryActivateCallbackId);
                          this._promptEntryActivateCallbackId = null;
                      }));
 
-        this.setButtons(buttons);
+        let tasks = [Lang.bind(this, function() {
+                         return this._fadeInPrompt();
+                     }),
+
+                     Lang.bind(this, function() {
+                         this.setButtons(buttons);
+                     }),
 
-        return this._fadeInPrompt();
+                     hold];
+
+        let batch = new Batch.ConcurrentBatch(tasks);
+
+        return batch.run();
     },
 
     _askQuestion: function(serviceName, question) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]