[longomatch] Scroll periods editor properly
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Scroll periods editor properly
- Date: Mon, 7 Jul 2014 11:30:29 +0000 (UTC)
commit 7ac9f180b5653c766092a92b0ce4425c2cdd0819
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Jun 19 14:48:42 2014 +0200
Scroll periods editor properly
LongoMatch.GUI/Gui/Component/ProjectPeriods.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
index b7a94e2..1a60801 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
@@ -41,9 +41,10 @@ namespace LongoMatch.Gui.Component
drawingarea1.HeightRequest = LongoMatch.Drawing.Common.TIMERULE_HEIGHT;
drawingarea2.HeightRequest = LongoMatch.Drawing.Common.TIMER_HEIGHT;
timersTimenline.TimeNodeChanged += HandleTimeNodeChanged;
- synclabel.Markup = String.Format ("{0} {1} {2}", "<b>⬆ ",
+ scrolledwindow2.Hadjustment.ValueChanged += HandleValueChanged;
+ synclabel.Markup = String.Format ("{0} {1} {2}", "<b>⬇ ",
Catalog.GetString ("Synchronize the game periods"),
- " ⬆</b>");
+ " ⬇</b>");
}
public Project Project {
@@ -90,6 +91,12 @@ namespace LongoMatch.Gui.Component
playerbin2.Seek (time, true);
}
+ void HandleValueChanged (object sender, EventArgs e)
+ {
+ timerule.Scroll = scrolledwindow2.Hadjustment.Value;
+ drawingarea1.QueueDraw ();
+ }
+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]