[longomatch] Change the signature to receive the button
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Change the signature to receive the button
- Date: Fri, 17 Apr 2015 16:26:27 +0000 (UTC)
commit e4863d74165f71c83e6452649528ee88da723f81
Author: Jorge Zapata <jorgeluis zapata gmail com>
Date: Tue Apr 14 12:50:16 2015 +0200
Change the signature to receive the button
Now we can iterate over the list of linkedButtons
LongoMatch.Core/Common/EventsBroker.cs | 4 ++--
LongoMatch.Core/Handlers/Handlers.cs | 2 +-
LongoMatch.GUI/Gui/Component/CodingWidget.cs | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Core/Common/EventsBroker.cs b/LongoMatch.Core/Common/EventsBroker.cs
index 0a05a41..dfb3bca 100644
--- a/LongoMatch.Core/Common/EventsBroker.cs
+++ b/LongoMatch.Core/Common/EventsBroker.cs
@@ -438,10 +438,10 @@ namespace LongoMatch.Core.Common
}
}
- public void EmitTimerNodeAddedEvent (Timer timer, TimeNode node)
+ public void EmitTimerNodeAddedEvent (TimerButton btn, TimeNode node)
{
if (TimerNodeAddedEvent != null) {
- TimerNodeAddedEvent (timer, node);
+ TimerNodeAddedEvent (btn, node);
}
}
diff --git a/LongoMatch.Core/Handlers/Handlers.cs b/LongoMatch.Core/Handlers/Handlers.cs
index bba777c..03d0426 100644
--- a/LongoMatch.Core/Handlers/Handlers.cs
+++ b/LongoMatch.Core/Handlers/Handlers.cs
@@ -43,7 +43,7 @@ namespace LongoMatch.Core.Handlers
public delegate void NewDashboardEventHandler (TimelineEvent evt,DashboardButton btn,bool edit);
/* An event was edited */
public delegate void TimeNodeChangedHandler (TimeNode tNode,Time time);
- public delegate void TimerNodeAddedHandler (Timer timer,TimeNode tn);
+ public delegate void TimerNodeAddedHandler (TimerButton btn,TimeNode tn);
/* Edit EventType properties */
public delegate void EditEventTypeHandler (EventType cat);
/* A list of plays needs to be deleted */
diff --git a/LongoMatch.GUI/Gui/Component/CodingWidget.cs b/LongoMatch.GUI/Gui/Component/CodingWidget.cs
index d61efb0..f6a385e 100644
--- a/LongoMatch.GUI/Gui/Component/CodingWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/CodingWidget.cs
@@ -360,9 +360,9 @@ namespace LongoMatch.Gui.Component
}
- void HandleTimerNodeAddedEvent (Timer timer, TimeNode tn)
+ void HandleTimerNodeAddedEvent (TimerButton btn, TimeNode tn)
{
- timeline.AddTimerNode (timer, tn);
+ timeline.AddTimerNode (btn.Timer, tn);
}
void HandleEventEdited (TimelineEvent play)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]