[chronojump] Force sensor better sensitivity on buttons



commit 468bf8eb283361e4691692a08e433dcba1caffad
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Oct 26 22:45:02 2017 +0200

    Force sensor better sensitivity on buttons

 glade/app1.glade       |    8 +++++++-
 src/gui/forceSensor.cs |    7 ++-----
 2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 8a84cc7..0e6f824 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1408,6 +1408,9 @@
                                                             <placeholder/>
                                                             </child>
                                                             <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkLabel" 
id="label_start_selector_jumps">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -4602,7 +4605,7 @@ EncoderInertialCapture</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="top_padding">8</property>
                                                             <child>
-                                                            <widget class="GtkHBox" id="hbox152">
+                                                            <widget class="GtkHBox" id="hbox_force_buttons">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">30</property>
@@ -21629,6 +21632,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index f52662b..b672660 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -30,9 +30,9 @@ using Mono.Unix;
 
 public partial class ChronoJumpWindow 
 {
+       [Widget] Gtk.HBox hbox_force_buttons;
        [Widget] Gtk.Button button_force_sensor_tare;
        [Widget] Gtk.Button button_force_sensor_calibrate;
-       [Widget] Gtk.Button button_force_sensor_check_version;
        [Widget] Gtk.Label label_force_sensor_value_max;
        [Widget] Gtk.Label label_force_sensor_value;
        [Widget] Gtk.Label label_force_sensor_value_min;
@@ -220,11 +220,8 @@ public partial class ChronoJumpWindow
 
        void forceSensorButtonsSensitive(bool sensitive)
        {
-               button_force_sensor_tare.Sensitive = sensitive;
-               button_force_sensor_calibrate.Sensitive = sensitive;
-               button_force_sensor_check_version.Sensitive = sensitive;
+               hbox_force_buttons.Sensitive = sensitive;
                button_execute_test.Sensitive = sensitive;
-               spin_force_sensor_calibration_kg_value.Sensitive = sensitive;
        }
 
        private bool pulseGTKForceSensorOther ()


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