[gnome-boxes] wizard: Empty password entry reverts back
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard: Empty password entry reverts back
- Date: Fri, 19 Oct 2012 15:57:36 +0000 (UTC)
commit dd2bbed7fc61a2c71057ba749c980ea14db0b2f0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Oct 16 05:01:26 2012 +0300
wizard: Empty password entry reverts back
When password entry loses input focus while its empty, it should revert
back to 'Add password' button.
https://bugzilla.gnome.org/show_bug.cgi?id=677176
src/unattended-installer.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index a1ea8b3..43f295b 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -278,6 +278,11 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia {
notebook.next_page ();
password_entry.is_focus = true;
});
+ password_entry.focus_out_event.connect (() => {
+ if (password_entry.text_length == 0)
+ notebook.prev_page ();
+ return false;
+ });
setup_table.attach_defaults (notebook, 2, 3, 2, 3);
foreach (var child in setup_table.get_children ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]