[chronojump] JumpsRunsMore cancel updates correctly all jump/runs gui



commit cf2703d0a375187c8626c7e3c8f2f8b9c9b2a7a5
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Oct 2 11:35:10 2020 +0200

    JumpsRunsMore cancel updates correctly all jump/runs gui

 src/gui/app1/jump.cs | 4 ++--
 src/gui/app1/run.cs  | 4 ++--
 src/gui/event.cs     | 9 ++-------
 3 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/src/gui/app1/jump.cs b/src/gui/app1/jump.cs
index c5c7d353..855d2f2c 100644
--- a/src/gui/app1/jump.cs
+++ b/src/gui/app1/jump.cs
@@ -423,13 +423,13 @@ public partial class ChronoJumpWindow
        private void on_more_jumps_cancelled (object o, EventArgs args) 
        {
                currentJumpType = previousJumpType;
-               extra_window_jumps_initialize(currentJumpType);
+               combo_select_jumps.Active = UtilGtk.ComboMakeActive(combo_select_jumps, currentJumpType.Name);
        }
        
        private void on_more_jumps_rj_cancelled (object o, EventArgs args) 
        {
                currentJumpRjType = previousJumpRjType;
-               extra_window_jumps_rj_initialize(currentJumpRjType);
+               combo_select_jumps_rj.Active = UtilGtk.ComboMakeActive(combo_select_jumps_rj, 
currentJumpRjType.Name);
        }
        
        private void extra_window_showWeightData (JumpType myJumpType, bool show) {
diff --git a/src/gui/app1/run.cs b/src/gui/app1/run.cs
index 2d8866d1..812c30a1 100644
--- a/src/gui/app1/run.cs
+++ b/src/gui/app1/run.cs
@@ -281,13 +281,13 @@ public partial class ChronoJumpWindow
        private void on_more_runs_cancelled (object o, EventArgs args) 
        {
                currentRunType = previousRunType;
-               extra_window_runs_initialize(currentRunType);
+               combo_select_runs.Active = UtilGtk.ComboMakeActive(combo_select_runs, currentRunType.Name);
        }
        
        private void on_more_runs_interval_cancelled (object o, EventArgs args) 
        {
                currentRunIntervalType = previousRunIntervalType;
-               extra_window_runs_interval_initialize(currentRunIntervalType);
+               combo_select_runs_interval.Active = UtilGtk.ComboMakeActive(combo_select_runs_interval, 
currentRunIntervalType.Name);
        }
 
        private void extra_window_showDistanceData (RunType myRunType, bool show, bool sensitive ) {
diff --git a/src/gui/event.cs b/src/gui/event.cs
index 9e622d26..ea7d4511 100644
--- a/src/gui/event.cs
+++ b/src/gui/event.cs
@@ -611,13 +611,8 @@ public class EventMoreWindow
        public EventMoreWindow () {
        }
 
-       public EventMoreWindow (Gtk.Window parent, bool testOrDelete) {
-               /*
-               Glade.XML gladeXML;
-               gladeXML = Glade.XML.FromAssembly (Util.GetGladePath() + "jumps_runs_more.glade", 
"jumps_runs_more", "chronojump");
-               gladeXML.Autoconnect(this);
-               */
-
+       public EventMoreWindow (Gtk.Window parent, bool testOrDelete)
+       {
                //name, startIn, weight, description
                store = new TreeStore(typeof (string), typeof (string), typeof (string), typeof (string));
 


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