[gnome-subtitles] When activating a sync point, seek to the sync point time instead of the subtitle time
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] When activating a sync point, seek to the sync point time instead of the subtitle time
- Date: Sun, 7 Mar 2010 02:11:11 +0000 (UTC)
commit 272f3a312bc5eeb65cdb5d26acd8a834f166a577
Author: Pedro Castro <mail>
Date: Sun Mar 7 02:10:54 2010 +0000
When activating a sync point, seek to the sync point time instead of the subtitle time
.../Dialog/TimingsSynchronizeDialog.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs b/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
index de36e9c..0d95a7e 100644
--- a/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
+++ b/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
@@ -213,7 +213,8 @@ public class TimingsSynchronizeDialog : GladeDialog {
SyncPoint syncPoint = syncPoints[args.Path];
int subtitleNumber = syncPoint.SubtitleNumber;
if (subtitleNumber < Base.Document.Subtitles.Count) {
- Base.Ui.View.Selection.Activate(Core.Util.IntToPath(syncPoint.SubtitleNumber), true, false);
+ Base.Ui.View.Selection.Select(Core.Util.IntToPath(syncPoint.SubtitleNumber), true, true);
+ Base.Ui.Video.Seek(syncPoint.Correct.Time);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]