[gnome-boxes] Remove workarounds for bug#720825
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Remove workarounds for bug#720825
- Date: Tue, 4 Feb 2014 14:42:06 +0000 (UTC)
commit f4306f74b03e3b8060356bbf0e2e1c818cf5ce55
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jan 30 21:15:54 2014 +0000
Remove workarounds for bug#720825
data/ui/unattended-setup-box.ui | 3 +++
src/unattended-setup-box.vala | 8 +-------
2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/unattended-setup-box.ui b/data/ui/unattended-setup-box.ui
index 17c690c..9321955 100644
--- a/data/ui/unattended-setup-box.ui
+++ b/data/ui/unattended-setup-box.ui
@@ -62,6 +62,7 @@
<property name="halign">start</property>
<property name="valign">center</property>
<property name="margin-bottom">15</property>
+ <signal name="notify::active" handler="on_mandatory_input_changed"/>
</object>
<packing>
<property name="left-attach">2</property>
@@ -113,6 +114,7 @@
<property name="valign">baseline</property>
<property name="margin-bottom">10</property>
<signal name="activate" handler="on_username_entry_activated"/>
+ <signal name="notify::text" handler="on_mandatory_input_changed"/>
</object>
<packing>
<property name="left-attach">2</property>
@@ -201,6 +203,7 @@
</style>
<signal name="activate" handler="on_key_entry_activated"/>
<signal name="insert-text" handler="on_key_text_inserted"/>
+ <signal name="notify::text" handler="on_mandatory_input_changed"/>
</object>
<packing>
<property name="left-attach">2</property>
diff --git a/src/unattended-setup-box.vala b/src/unattended-setup-box.vala
index 1938a25..c52b985 100644
--- a/src/unattended-setup-box.vala
+++ b/src/unattended-setup-box.vala
@@ -103,15 +103,9 @@ private class Boxes.UnattendedSetupBox : Gtk.Box {
foreach (var child in setup_grid.get_children ())
if (child != express_label && child != express_toggle)
express_toggle.bind_property ("active", child, "sensitive", BindingFlags.SYNC_CREATE);
-
- // FIXME: We should do this from .ui file once this bug is fixed:
- // https://bugzilla.gnome.org/show_bug.cgi?id=720825
- express_toggle.notify["active"].connect (on_mandatory_input_changed);
- username_entry.notify["text"].connect (on_mandatory_input_changed);
- if (product_key_format != null)
- product_key_entry.notify["text"].connect (on_mandatory_input_changed);
}
+ [GtkCallback]
private void on_mandatory_input_changed () {
notify_property ("ready-to-create");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]