[longomatch] Pause while seeking from the timeline
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Pause while seeking from the timeline
- Date: Tue, 31 Mar 2015 17:37:11 +0000 (UTC)
commit 22b4b4500dc764b1a7a24f326753fa763418fe4b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Mar 28 01:20:50 2015 +0100
Pause while seeking from the timeline
LongoMatch.GUI/Gui/Component/ProjectPeriods.cs | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
index 2951b59..e10ac03 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
@@ -104,6 +104,7 @@ namespace LongoMatch.Gui.Component
// Listen for seek events from the timerule
Config.EventsBroker.SeekEvent += Seek;
+ Config.EventsBroker.TogglePlayEvent += HandleTogglePlayEvent;
Config.EventsBroker.KeyPressed += HandleKeyPressed;
// Handle dragging of periods
camerasTimeline.TimeNodeChanged += HandleTimeNodeChanged;
@@ -557,6 +558,16 @@ namespace LongoMatch.Gui.Component
{
menu.ShowMenu (project, timer, time, camerasTimeline.PeriodsTimeline);
}
+
+ void HandleTogglePlayEvent (bool playing)
+ {
+ if (playing) {
+ main_cam_playerbin.Player.Play ();
+ } else {
+ Pause ();
+ }
+ }
+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]