[longomatch] Rename signal to avoid overriden widget's StateChanged
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Rename signal to avoid overriden widget's StateChanged
- Date: Mon, 5 Jul 2010 18:46:55 +0000 (UTC)
commit 7bcf120dce1f7bd9a4748f7b84f03da8f5e68c71
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Jun 27 02:08:01 2010 +0200
Rename signal to avoid overriden widget's StateChanged
CesarPlayer/Gui/PlayerBin.cs | 6 +++---
CesarPlayer/gtk-gui/objects.xml | 2 +-
LongoMatch/Handlers/VideoDrawingsManager.cs | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/CesarPlayer/Gui/PlayerBin.cs b/CesarPlayer/Gui/PlayerBin.cs
index d30b4df..d28981e 100644
--- a/CesarPlayer/Gui/PlayerBin.cs
+++ b/CesarPlayer/Gui/PlayerBin.cs
@@ -38,7 +38,7 @@ namespace LongoMatch.Gui
public event SegmentClosedHandler SegmentClosedEvent;
public event TickHandler Tick;
public event ErrorHandler Error;
- public event StateChangeHandler StateChanged;
+ public event StateChangeHandler PlayStateChanged;
public event NextButtonClickedHandler Next;
public event PrevButtonClickedHandler Prev;
public event DrawFrameHandler DrawFrame;
@@ -388,8 +388,8 @@ namespace LongoMatch.Gui
playbutton.Show();
pausebutton.Hide();
}
- if (StateChanged != null)
- StateChanged(this,args);
+ if (PlayStateChanged != null)
+ PlayStateChanged(this,args);
}
protected void OnReadyToSeek(object o, EventArgs args){
diff --git a/CesarPlayer/gtk-gui/objects.xml b/CesarPlayer/gtk-gui/objects.xml
index 935f280..8946adc 100644
--- a/CesarPlayer/gtk-gui/objects.xml
+++ b/CesarPlayer/gtk-gui/objects.xml
@@ -20,11 +20,11 @@
<signal name="SegmentClosedEvent" />
<signal name="Tick" />
<signal name="Error" />
- <signal name="StateChanged" />
<signal name="Next" />
<signal name="Prev" />
<signal name="DrawFrame" />
<signal name="SeekEvent" />
+ <signal name="PlayStateChanged" />
</itemgroup>
</signals>
</object>
diff --git a/LongoMatch/Handlers/VideoDrawingsManager.cs b/LongoMatch/Handlers/VideoDrawingsManager.cs
index 229de8c..c354899 100644
--- a/LongoMatch/Handlers/VideoDrawingsManager.cs
+++ b/LongoMatch/Handlers/VideoDrawingsManager.cs
@@ -78,13 +78,13 @@ namespace LongoMatch.Handlers
}
private void ConnectSignals() {
- player.StateChanged += OnStateChanged;
+ player.PlayStateChanged += OnStateChanged;
player.SeekEvent += OnSeekEvent;
player.SegmentClosedEvent += OnSegmentCloseEvent;
}
private void DisconnectSignals() {
- player.StateChanged -= OnStateChanged;
+ player.PlayStateChanged -= OnStateChanged;
player.SeekEvent -= OnSeekEvent;
player.SegmentClosedEvent -= OnSegmentCloseEvent;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]