[gnome-boxes] wizard: Never make the 'Express Install' label insensitive



commit 2a11d977248d9739244549b7404825634f9e42b4
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Fri May 17 21:31:48 2013 +0200

    wizard: Never make the 'Express Install' label insensitive
    
    When doing a non-express install, all the other UI elements should
    be unsensitive, but the 'Express Install' switch itself is still
    sensitive if the user wants to reenable express install, so
    its label should always be sensitive as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700469

 src/unattended-installer.vala |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 0e70ce5..6c9be39 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -361,12 +361,12 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
         // First row
         // Translators: 'Express Install' means that the new box installation will be fully automated, the 
user
         // won't be asked anything while it's performed.
-        var label = new Gtk.Label (_("Express Install"));
-        label.margin_right = 10;
-        label.margin_bottom = 15;
-        label.halign = Gtk.Align.END;
-        label.valign = Gtk.Align.CENTER;
-        setup_grid.attach (label, 0, 0, 2, 1);
+        var express_label = new Gtk.Label (_("Express Install"));
+        express_label.margin_right = 10;
+        express_label.margin_bottom = 15;
+        express_label.halign = Gtk.Align.END;
+        express_label.valign = Gtk.Align.CENTER;
+        setup_grid.attach (express_label, 0, 0, 2, 1);
 
         express_toggle = new Gtk.Switch ();
         express_toggle.active = !os_media.live;
@@ -387,7 +387,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
         avatar.show_all ();
         fetch_user_avatar.begin (avatar);
 
-        label = new Gtk.Label (_("Username"));
+        var label = new Gtk.Label (_("Username"));
         label.margin_right = 10;
         label.margin_bottom  = 10;
         label.halign = Gtk.Align.END;
@@ -445,7 +445,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
         setup_grid_n_rows++;
 
         foreach (var child in setup_grid.get_children ())
-            if (child != express_toggle)
+            if ((child != express_label) && (child != express_toggle))
                 express_toggle.bind_property ("active", child, "sensitive", BindingFlags.SYNC_CREATE);
 
         if (product_key_format == null)


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