[longomatch] Disable seeking in live review
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Disable seeking in live review
- Date: Sun, 25 Nov 2012 10:41:32 +0000 (UTC)
commit fd547d58d5d8be77b593f790346a428b3b7d1a28
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Nov 25 01:34:05 2012 +0100
Disable seeking in live review
LongoMatch.Core/Interfaces/GUI/IPlayer.cs | 1 +
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Interfaces/GUI/IPlayer.cs b/LongoMatch.Core/Interfaces/GUI/IPlayer.cs
index d14ccba..1b461f7 100644
--- a/LongoMatch.Core/Interfaces/GUI/IPlayer.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IPlayer.cs
@@ -48,6 +48,7 @@ namespace LongoMatch.Interfaces.GUI
bool FullScreen {set;}
float Rate {get;set;}
bool Detached {get;set;}
+ bool SeekingEnabled {set;}
void Open(string mrl);
void Play();
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index 082e32c..3068e8e 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -126,6 +126,12 @@ namespace LongoMatch.Gui
vscale1.Value = (int)(value*25);
}
}
+
+ public bool SeekingEnabled {
+ set {
+ timescale.Sensitive = value;
+ }
+ }
public bool FullScreen {
set {
@@ -244,6 +250,7 @@ namespace LongoMatch.Gui
SetSensitive();
timescale.Value=0;
timelabel.Text="";
+ SeekingEnabled = true;
player.CancelProgramedStop();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]