[chronojump] Clean code of previous commit



commit 6d7fdc285d0568e75a584c50364ba62a4a924f0f
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue May 17 10:01:57 2022 +0200

    Clean code of previous commit

 src/gui/app1/jumpsDjOptimalFall.cs  | 7 -------
 src/gui/cairo/jumpsDjOptimalFall.cs | 4 +---
 2 files changed, 1 insertion(+), 10 deletions(-)
---
diff --git a/src/gui/app1/jumpsDjOptimalFall.cs b/src/gui/app1/jumpsDjOptimalFall.cs
index 683335c01..a1c9d3257 100644
--- a/src/gui/app1/jumpsDjOptimalFall.cs
+++ b/src/gui/app1/jumpsDjOptimalFall.cs
@@ -105,13 +105,6 @@ public partial class ChronoJumpWindow
        }
        private void on_drawingarea_jumps_dj_optimal_fall_expose_event (object o, ExposeEventArgs args) 
        {
-               /*
-                  moved to creation:
-
-               //needed to have mouse clicks at: on_drawingarea_jumps_weight_fv_profile_button_press_event ()
-               drawingarea_jumps_dj_optimal_fall.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
-               */
-
                jumpsDjOptimalFallDo(false); //do not calculate data
                //data is calculated on switch page (at notebook_capture_analyze) or on change person
        }
diff --git a/src/gui/cairo/jumpsDjOptimalFall.cs b/src/gui/cairo/jumpsDjOptimalFall.cs
index 391b73989..40da6f6f0 100644
--- a/src/gui/cairo/jumpsDjOptimalFall.cs
+++ b/src/gui/cairo/jumpsDjOptimalFall.cs
@@ -67,9 +67,7 @@ public class JumpsDjOptimalFallGraph : CairoXY
                xUnits = "cm";
                yUnits = "cm";
 
-               //needed to have mouse clicks at: on_drawingarea_jumps_weight_fv_profile_button_press_event ()
-//             area.AddEvents((int) (Gdk.EventMask.ButtonPressMask | Gdk.EventMask.ButtonReleaseMask));
-               area.AddEvents((int) Gdk.EventMask.ButtonPressMask);
+               area.AddEvents((int) Gdk.EventMask.ButtonPressMask); //to have mouse clicks
                mouseX = -1;
                mouseY = -1;
        }


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