[chronojump] Fixed not showing track distance on creating new simple run type



commit a21f036525b2a8e999a4ed96993ea7bde9f4ae91
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Mar 22 13:15:45 2021 +0100

    Fixed not showing track distance on creating new simple run type

 glade/run_type_add.glade | 12 ++++++------
 src/gui/runType.cs       |  5 +----
 2 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/glade/run_type_add.glade b/glade/run_type_add.glade
index 62c98854..b3c74290 100644
--- a/glade/run_type_add.glade
+++ b/glade/run_type_add.glade
@@ -114,6 +114,12 @@ options</property>
                         <property name="n_columns">3</property>
                         <property name="column_spacing">10</property>
                         <property name="row_spacing">4</property>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
                         <child>
                           <widget class="GtkLabel" id="label138">
                             <property name="can_focus">False</property>
@@ -250,12 +256,6 @@ options</property>
                             <property name="y_options"/>
                           </packing>
                         </child>
-                        <child>
-                          <placeholder/>
-                        </child>
-                        <child>
-                          <placeholder/>
-                        </child>
                         <child>
                           <widget class="GtkHBox" id="hbox_fixed">
                             <property name="visible">True</property>
diff --git a/src/gui/runType.cs b/src/gui/runType.cs
index 008f4959..92ac9d5f 100644
--- a/src/gui/runType.cs
+++ b/src/gui/runType.cs
@@ -145,11 +145,8 @@ public class RunTypeAddWindow
                alignment_hbox_distance_fixed.Sensitive = false;
                alignment_vbox_distance_variable.Sensitive = false;
                if(simple)
-               {
-                       alignment_hbox_distance_fixed.Hide();
                        alignment_vbox_distance_variable.Hide();
-               }
-                                       
+
                dd0 = new Gtk.Entry();  dd0.Changed += new EventHandler(on_entries_required_changed);
                dd1 = new Gtk.Entry();  dd1.Changed += new EventHandler(on_entries_required_changed);
                dd2 = new Gtk.Entry();  dd2.Changed += new EventHandler(on_entries_required_changed);


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