[chronojump] Removed ButtonReleaseMask on Cairo graphs



commit a10a27f1cdd659ddeb251499f0b834e73bf581ee
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Sep 3 16:34:45 2020 +0200

    Removed ButtonReleaseMask on Cairo graphs

 src/gui/app1/encoder.cs              | 3 ++-
 src/gui/app1/forceSensorAnalyze.cs   | 3 ++-
 src/gui/app1/jumpsEvolution.cs       | 3 ++-
 src/gui/app1/jumpsRjFatigue.cs       | 3 ++-
 src/gui/app1/jumpsWeightFVProfile.cs | 3 ++-
 src/gui/cairo/jumpsDjOptimalFall.cs  | 3 ++-
 6 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index c14546d2..2ffe5979 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -5427,7 +5427,8 @@ public partial class ChronoJumpWindow
                bool encoderGraphDoPlotJustCreated = false;
 
                //needed to have mouse clicks button_press_event ()
-               encoder_capture_curves_bars_drawingarea.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+//             encoder_capture_curves_bars_drawingarea.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+               encoder_capture_curves_bars_drawingarea.AddEvents((int) Gdk.EventMask.ButtonPressMask);
 
                Gdk.Rectangle allocation = encoder_capture_curves_bars_drawingarea.Allocation;
                if(encoder_capture_curves_bars_pixmap == null || encoder_capture_curves_sizeChanged || 
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index db0fb680..26468c56 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -891,7 +891,8 @@ public partial class ChronoJumpWindow
                        return;
 
                //needed to have mouse clicks button_press_event ()
-               force_sensor_ai_drawingarea.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+//             force_sensor_ai_drawingarea.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+               force_sensor_ai_drawingarea.AddEvents((int) Gdk.EventMask.ButtonPressMask);
 
                /* in some mono installations, configure_event is not called, but expose_event yes.
                 * Do here the initialization
diff --git a/src/gui/app1/jumpsEvolution.cs b/src/gui/app1/jumpsEvolution.cs
index f510d835..aa0a1196 100644
--- a/src/gui/app1/jumpsEvolution.cs
+++ b/src/gui/app1/jumpsEvolution.cs
@@ -113,7 +113,8 @@ public partial class ChronoJumpWindow
        private void on_drawingarea_jumps_evolution_expose_event (object o, ExposeEventArgs args) 
        {
                //needed to have mouse clicks at: on_drawingarea_jumps_evolution_button_press_event ()
-               drawingarea_jumps_evolution.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+//             drawingarea_jumps_evolution.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+               drawingarea_jumps_evolution.AddEvents((int) Gdk.EventMask.ButtonPressMask);
 
                jumpsEvolutionDo(false); //do not calculate data
                //data is calculated on switch page (at notebook_capture_analyze) or on change person
diff --git a/src/gui/app1/jumpsRjFatigue.cs b/src/gui/app1/jumpsRjFatigue.cs
index 612f29e8..a63733bd 100644
--- a/src/gui/app1/jumpsRjFatigue.cs
+++ b/src/gui/app1/jumpsRjFatigue.cs
@@ -200,7 +200,8 @@ public partial class ChronoJumpWindow
        private void on_drawingarea_jumps_rj_fatigue_expose_event (object o, ExposeEventArgs args)
        {
                //needed to have mouse clicks at: on_drawingarea_jumps_rj_fatigue_button_press_event ()
-               drawingarea_jumps_rj_fatigue.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+//             drawingarea_jumps_rj_fatigue.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+               drawingarea_jumps_rj_fatigue.AddEvents((int) Gdk.EventMask.ButtonPressMask);
 
                //createComboSelectJumpsRjFatigueNum (false);
                jumpsRjFatigueDo(false);
diff --git a/src/gui/app1/jumpsWeightFVProfile.cs b/src/gui/app1/jumpsWeightFVProfile.cs
index afedec29..6fbd5ec4 100644
--- a/src/gui/app1/jumpsWeightFVProfile.cs
+++ b/src/gui/app1/jumpsWeightFVProfile.cs
@@ -141,7 +141,8 @@ public partial class ChronoJumpWindow
        private void on_drawingarea_jumps_weight_fv_profile_expose_event (object o, ExposeEventArgs args) 
        {
                //needed to have mouse clicks at: on_drawingarea_jumps_weight_fv_profile_button_press_event ()
-               drawingarea_jumps_weight_fv_profile.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+//             drawingarea_jumps_weight_fv_profile.AddEvents((int) (Gdk.EventMask.ButtonPressMask | 
Gdk.EventMask.ButtonReleaseMask));
+               drawingarea_jumps_weight_fv_profile.AddEvents((int) Gdk.EventMask.ButtonPressMask);
 
                jumpsWeightFVProfileDo(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 ae2f6c00..a9a64da8 100644
--- a/src/gui/cairo/jumpsDjOptimalFall.cs
+++ b/src/gui/cairo/jumpsDjOptimalFall.cs
@@ -68,7 +68,8 @@ public class JumpsDjOptimalFallGraph : CairoXY
                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 | Gdk.EventMask.ButtonReleaseMask));
+               area.AddEvents((int) Gdk.EventMask.ButtonPressMask);
        }
 
        public override void Do()


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