[gnome-boxes/gnome-3-8] wizard: Never make the 'Express Install' label insensitive
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-8] wizard: Never make the 'Express Install' label insensitive
- Date: Tue, 28 May 2013 09:07:29 +0000 (UTC)
commit 831d2c5ff0470a4191c6cc8c75faaf7f564e9075
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 ea002f0..2448b15 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -363,12 +363,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;
@@ -389,7 +389,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;
@@ -447,7 +447,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]