[gnome-shell] gdm: don't clear bullets while authenticating



commit ca5ab20f67e02d23d5f227960d92ef8b4e6f1df2
Author: Ray Strode <rstrode redhat com>
Date:   Mon Oct 17 01:51:02 2011 -0400

    gdm: don't clear bullets while authenticating
    
    Users don't expect the bullets they just typed into an entry
    field to disappear as soon as they hit enter.
    
    Instead, they want the dialog to become insensitive during the
    authentication process, so that it's clear that what they typed
    in is being processed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657894

 data/theme/gdm.css    |    5 +++++
 js/gdm/loginDialog.js |    5 ++++-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/gdm.css b/data/theme/gdm.css
index c23178f..e8e4d2a 100644
--- a/data/theme/gdm.css
+++ b/data/theme/gdm.css
@@ -126,6 +126,11 @@
     warning-color: #999;
 }
 
+.login-dialog-prompt-entry:insensitive {
+    color: rgba(0,0,0,0.7);
+    border: 2px solid #565656;
+}
+
 .login-dialog-session-list {
     color: #ffffff;
     font-size: 10.5pt;
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 5420217..473b7cb 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -1061,6 +1061,8 @@ LoginDialog.prototype = {
 
                      function() {
                          this._promptFingerprintMessage.hide();
+                         this._promptEntry.reactive = true;
+                         this._promptEntry.remove_style_pseudo_class('insensitive');
                          this._promptEntry.set_text('');
                      }];
 
@@ -1076,7 +1078,8 @@ LoginDialog.prototype = {
 
                      function() {
                          let _text = this._promptEntry.get_text();
-                         this._promptEntry.set_text('');
+                         this._promptEntry.reactive = false;
+                         this._promptEntry.add_style_pseudo_class('insensitive');
                          this._greeterClient.call_answer_query(serviceName, _text);
                      }];
 



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