[gnome-subtitles] Code cleanup



commit ac34e3be2f84b73c6260b6b5681d1e769cf5b7c4
Author: Pedro Castro <mail pedrocastro org>
Date:   Tue Jun 14 22:22:19 2011 +0100

    Code cleanup

 .../Ui/VideoPreview/SubtitleTracker.cs             |    6 +++---
 src/GnomeSubtitles/Ui/View/SubtitleView.cs         |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/GnomeSubtitles/Ui/VideoPreview/SubtitleTracker.cs b/src/GnomeSubtitles/Ui/VideoPreview/SubtitleTracker.cs
index d39fd22..9c0d3e7 100755
--- a/src/GnomeSubtitles/Ui/VideoPreview/SubtitleTracker.cs
+++ b/src/GnomeSubtitles/Ui/VideoPreview/SubtitleTracker.cs
@@ -34,7 +34,7 @@ public class SubtitleTracker {
 	public delegate void VideoCurrentSubtitleChangedHandler (int indexSubtitle);
 		
 	/* Events */
-	public event VideoCurrentSubtitleChangedHandler SubtitleChanged;
+	public event VideoCurrentSubtitleChangedHandler CurrentSubtitleChanged;
 
 
 	public SubtitleTracker () {
@@ -81,8 +81,8 @@ public class SubtitleTracker {
 	}
 
 	private void EmitCurrentSubtitleChanged(int newIndex) {
-		if (SubtitleChanged != null)
-			SubtitleChanged(newIndex);
+		if (CurrentSubtitleChanged != null)
+			CurrentSubtitleChanged(newIndex);
 	}
 
 
diff --git a/src/GnomeSubtitles/Ui/View/SubtitleView.cs b/src/GnomeSubtitles/Ui/View/SubtitleView.cs
index afa9685..f1668f7 100644
--- a/src/GnomeSubtitles/Ui/View/SubtitleView.cs
+++ b/src/GnomeSubtitles/Ui/View/SubtitleView.cs
@@ -73,9 +73,9 @@ public class SubtitleView {
 	
 	public void SetAutoSelectSubtitles (bool active) {
 		if (active)
-			Base.Ui.Video.Tracker.SubtitleChanged += OnCurrentSubtitleChanged;
+			Base.Ui.Video.Tracker.CurrentSubtitleChanged += OnCurrentSubtitleChanged;
 		else
-			Base.Ui.Video.Tracker.SubtitleChanged -= OnCurrentSubtitleChanged;
+			Base.Ui.Video.Tracker.CurrentSubtitleChanged -= OnCurrentSubtitleChanged;
 	}
 
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]