[gnome-boxes] Hide password entry if the VM is not password protected
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Hide password entry if the VM is not password protected
- Date: Thu, 17 Nov 2011 00:30:43 +0000 (UTC)
commit c35334bf64f391ed7e59d746f629d5ecde9945f3
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Wed Nov 16 19:20:37 2011 +0100
Hide password entry if the VM is not password protected
https://bugzilla.gnome.org/show_bug.cgi?id=664216
src/machine.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index fb18bc9..26262e6 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -320,7 +320,7 @@ private class Boxes.MachineActor: Boxes.UI {
}
public void set_password_needed (bool needed) {
- password_entry.set_sensitive (needed);
+ password_entry.visible = needed;
password_entry.set_can_focus (needed);
if (needed)
password_entry.grab_focus ();
@@ -343,7 +343,6 @@ private class Boxes.MachineActor: Boxes.UI {
switch (ui_state) {
case UIState.CREDS:
scale_screenshot (2.0f);
- password_entry.show ();
break;
case UIState.DISPLAY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]