[gnome-boxes] Make use of Object.bind_property()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Make use of Object.bind_property()
- Date: Thu, 8 Dec 2011 17:22:05 +0000 (UTC)
commit 5b232c88303ed4d80b8bd50dd772011dd65b02ab
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Dec 6 17:25:15 2011 +0200
Make use of Object.bind_property()
https://bugzilla.gnome.org/show_bug.cgi?id=665803
src/unattended-installer.vala | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index fc21e15..30ba6fa 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -113,11 +113,6 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia {
express_toggle.halign = Gtk.Align.START;
express_toggle.valign = Gtk.Align.CENTER;
table.attach_defaults (express_toggle, 2, 3, 0, 1);
- express_toggle.notify["active"].connect ((object, pspec) => {
- foreach (var child in table.get_children ())
- if (child != express_toggle)
- child.sensitive = express_toggle.active;
- });
// 2nd row (while user avatar spans over 2 rows)
var avatar_file = "/var/lib/AccountsService/icons/" + Environment.get_user_name ();
@@ -159,6 +154,10 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia {
table.attach_defaults (password_entry, 2, 3, 2, 3);
password_entry.is_focus = true;
});
+
+ foreach (var child in table.get_children ())
+ if (child != express_toggle)
+ express_toggle.bind_property ("active", child, "sensitive", 0);
}
protected virtual void clean_up () throws GLib.Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]