[chronojump] fixed spin_encoder_exercise_displaced_body_weight not being updated



commit 1675154f1b43d0d60c9f0bb57ed212c493403b33
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Oct 1 13:34:00 2021 +0200

    fixed spin_encoder_exercise_displaced_body_weight not being updated

 glade/app1.glade        | 35 +++++++++++++++++++++++------------
 src/gui/app1/encoder.cs |  1 +
 2 files changed, 24 insertions(+), 12 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 8d232ba7d..26b35c3e4 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -24749,6 +24749,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -31060,18 +31063,6 @@ Concentric</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">6</property>
                                                             <child>
-                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
-                                                            <property name="can_focus">False</property>
-                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="pack_type">end</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_capturing">
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
@@ -31108,6 +31099,18 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
+                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="pack_type">end</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_no_capturing">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -34242,11 +34245,16 @@ then click this button.</property>
                                                             <widget class="GtkSpinButton" 
id="spin_encoder_exercise_displaced_body_weight">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
+                                                            <property name="max_length">3</property>
                                                             <property name="invisible_char">•</property>
+                                                            <property name="width_chars">3</property>
+                                                            <property name="xalign">1</property>
                                                             <property 
name="primary_icon_activatable">False</property>
                                                             <property 
name="secondary_icon_activatable">False</property>
                                                             <property 
name="primary_icon_sensitive">True</property>
                                                             <property 
name="secondary_icon_sensitive">True</property>
+                                                            <property name="adjustment">0 0 100 1 10 
0</property>
+                                                            <property name="climb_rate">1</property>
                                                             <property name="numeric">True</property>
                                                             </widget>
                                                             <packing>
@@ -40442,6 +40450,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index 4eff18fde..c00b1b67e 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -5170,6 +5170,7 @@ public partial class ChronoJumpWindow
                EncoderExercise ex = (EncoderExercise) SqliteEncoder.SelectEncoderExercises(
                                false, getExerciseIDFromEncoderCombo(exerciseCombos.CAPTURE),
                                false, getEncoderGIByMenuitemMode())[0];
+               //LogB.Information("exercise: " + ex.ToString());
 
                prepare_encoder_exercise_add_edit (false);
 


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