[california] Fix out-of-range bug
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california] Fix out-of-range bug
- Date: Wed, 6 Aug 2014 00:38:43 +0000 (UTC)
commit 47d9cff619979fbbd4137d05aaefab5f91c5c8f7
Author: Jim Nelson <jim yorba org>
Date: Tue Aug 5 17:38:06 2014 -0700
Fix out-of-range bug
A change introduced late in the time/date widgets patch introduced
a regression in input handling. This reverts that change.
src/host/host-date-time-widget.vala | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/src/host/host-date-time-widget.vala b/src/host/host-date-time-widget.vala
index 03f772f..f707ed3 100644
--- a/src/host/host-date-time-widget.vala
+++ b/src/host/host-date-time-widget.vala
@@ -99,16 +99,6 @@ public class DateTimeWidget : Gtk.Box {
transform_adjustment_widget_to_sensitive);
}
- // update out_of_range when its dependencies change
- bind_property(PROP_DATE, this, PROP_OUT_OF_RANGE, BindingFlags.SYNC_CREATE,
- transform_to_out_of_range);
- bind_property(PROP_WALL_TIME, this, PROP_OUT_OF_RANGE, BindingFlags.SYNC_CREATE,
- transform_to_out_of_range);
- bind_property(PROP_FLOOR, this, PROP_OUT_OF_RANGE, BindingFlags.SYNC_CREATE,
- transform_to_out_of_range);
- bind_property(PROP_CEILING, this, PROP_OUT_OF_RANGE, BindingFlags.SYNC_CREATE,
- transform_to_out_of_range);
-
bind_bool_to_time_controls(PROP_ENABLE_DATE, iterate<Gtk.Widget>(calendar));
// use signal handlers to initialize widgets
@@ -151,12 +141,6 @@ public class DateTimeWidget : Gtk.Box {
return true;
}
- private bool transform_to_out_of_range(Binding binding, Value source_value, ref Value target_value) {
- target_value = is_valid_date_time(date, wall_time);
-
- return true;
- }
-
private void connect_property_signals() {
notify[PROP_DATE].connect(on_date_changed);
notify[PROP_WALL_TIME].connect(on_wall_time_changed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]