[gnome-boxes] Reset display on credentials needed



commit 877cb5bcc48abe9f676cae60ab3b75aeae82e087
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Mar 22 03:02:20 2012 +0200

    Reset display on credentials needed
    
    We reconnect/recreate display when credentials are needed so we should
    get rid of the existing display connection we have in that case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672598

 src/machine.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 2401417..2045369 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -329,12 +329,16 @@ private class Boxes.MachineActor: Boxes.UI {
     public void set_password_needed (bool needed) {
         password_entry.visible = needed;
         password_entry.set_can_focus (needed);
-        if (needed)
+        if (needed) {
             password_entry.grab_focus ();
+            machine.display = null;
+        }
     }
 
     public void set_username_needed (bool needed) {
-        debug ("fixme");
+        debug ("FIXME: Do something about fetching username when required?");
+        if (needed)
+            machine.display = null;
     }
 
     public string get_password () {



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