[longomatch] Only show timer menu from the timers timeline
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Only show timer menu from the timers timeline
- Date: Thu, 23 Apr 2015 15:22:39 +0000 (UTC)
commit a32e2156bcd2d288a44b6c42a37eb246087da60e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Apr 23 14:48:49 2015 +0200
Only show timer menu from the timers timeline
LongoMatch.Drawing/Widgets/CamerasTimeline.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/CamerasTimeline.cs b/LongoMatch.Drawing/Widgets/CamerasTimeline.cs
index ffe774c..425305f 100644
--- a/LongoMatch.Drawing/Widgets/CamerasTimeline.cs
+++ b/LongoMatch.Drawing/Widgets/CamerasTimeline.cs
@@ -191,7 +191,9 @@ namespace LongoMatch.Drawing.Widgets
protected override void ShowMenu (Point coords)
{
- if (ShowTimerMenuEvent != null) {
+ if (ShowTimerMenuEvent != null &&
+ coords.Y >= PeriodsTimeline.OffsetY &&
+ coords.Y <= PeriodsTimeline.OffsetY + PeriodsTimeline.Height) {
Timer t = null;
if (Selections.Count > 0) {
TimerTimeNodeObject to = Selections.Last ().Drawable as
TimerTimeNodeObject;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]