[gnome-subtitles] Don't ignore align and reselect as given by argument
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Don't ignore align and reselect as given by argument
- Date: Sun, 25 Jul 2010 23:36:57 +0000 (UTC)
commit 9d51249514fae672736ad5be42fd610b6492c113
Author: Pedro Castro <mail pedrocastro org>
Date: Sun Jul 25 10:44:28 2010 +0100
Don't ignore align and reselect as given by argument
src/GnomeSubtitles/Ui/View/SubtitleSelection.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/GnomeSubtitles/Ui/View/SubtitleSelection.cs b/src/GnomeSubtitles/Ui/View/SubtitleSelection.cs
index 2c3fe35..a28e2b8 100644
--- a/src/GnomeSubtitles/Ui/View/SubtitleSelection.cs
+++ b/src/GnomeSubtitles/Ui/View/SubtitleSelection.cs
@@ -244,7 +244,7 @@ public class SubtitleSelection {
/// <remarks>The subtitle is only selected if it exists. The input focus will be placed on the path.</remarks>
public void Select (int index, bool align, bool reselect) {
if ((index >= 0) && (index < Base.Document.Subtitles.Count))
- Select(Util.IntToPath(index), false, false);
+ Select(Util.IntToPath(index), align, reselect);
}
/// <summary>Selects a <see cref="TreePath" />, activates it and selects text in the subtitle it refers to.</summary>
@@ -359,7 +359,7 @@ public class SubtitleSelection {
/// <param name="align">Whether to align the path to the center if it isn't visible.</param>
/// <remarks>The path is selected and the input </remarks>
private void SetFocus (TreePath path, bool align) {
- ScrollToFocus(path, true);
+ ScrollToFocus(path, align);
tree.SetCursor(path, null, false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]