[gnome-boxes/3.5.x] Reset display on credentials needed
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/3.5.x] Reset display on credentials needed
- Date: Thu, 22 Mar 2012 01:53:13 +0000 (UTC)
commit 5fb7c84a1e93e9066b15e5788ee42ce7b053d234
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]