[longomatch] Pause the periods sync player clicking back
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Pause the periods sync player clicking back
- Date: Sun, 30 Nov 2014 23:25:26 +0000 (UTC)
commit 7bc8db2f9add3734ffa505a897e8a6076686897d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Dec 1 00:25:01 2014 +0100
Pause the periods sync player clicking back
LongoMatch.GUI/Gui/Component/ProjectPeriods.cs | 5 +++++
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
index ecef5a5..5846030 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
@@ -74,6 +74,11 @@ namespace LongoMatch.Gui.Component
base.OnDestroyed ();
}
+ public void Pause ()
+ {
+ playerbin2.Pause ();
+ }
+
public void SaveChanges ()
{
if (!projectHasPeriods)
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 29669fe..f65dcd2 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -450,6 +450,9 @@ namespace LongoMatch.Gui.Panel
void HandleBackClicked (object sender, EventArgs e)
{
+ if (notebook1.Page == PROJECT_PERIODS) {
+ projectperiods1.Pause ();
+ }
if (notebook1.Page == firstPage) {
if (BackEvent != null) {
BackEvent ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]