[longomatch] Make the fit button work again
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Make the fit button work again
- Date: Mon, 18 Mar 2013 10:20:33 +0000 (UTC)
commit 2280dd6511748b9d731c6778734fca627e835b66
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Mar 17 20:58:48 2013 +0100
Make the fit button work again
LongoMatch.GUI/Gui/Base/TimelineWidgetBase.cs | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Base/TimelineWidgetBase.cs b/LongoMatch.GUI/Gui/Base/TimelineWidgetBase.cs
index 34a127e..0d594f7 100644
--- a/LongoMatch.GUI/Gui/Base/TimelineWidgetBase.cs
+++ b/LongoMatch.GUI/Gui/Base/TimelineWidgetBase.cs
@@ -73,6 +73,12 @@ namespace LongoMatch.Gui.Base
}
}
+ public Button FitButton {
+ get {
+ return fitbutton;
+ }
+ }
+
public Alignment Alignment {
get{
return categoriesalignment1;
@@ -125,6 +131,7 @@ namespace LongoMatch.Gui.Base
SetPixelRatio(10);
tsList = new Dictionary<object, W>();
ZoomScale.ValueChanged += (sender, e) => {SetPixelRatio((uint)ZoomScale.Value);};
+ FitButton.Clicked += (sender, e) => AdjustPostion (currentFrame);
}
public Z SelectedTimeNode {
@@ -183,11 +190,6 @@ namespace LongoMatch.Gui.Base
}
}
- protected virtual void OnFitbuttonClicked(object sender, System.EventArgs e)
- {
- AdjustPostion(currentFrame);
- }
-
protected virtual void OnZoomscaleValueChanged(object sender, System.EventArgs e)
{
SetPixelRatio((uint)(ZoomScale.Value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]