[longomatch] Don't print beyong the limits in the timeline
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Don't print beyong the limits in the timeline
- Date: Thu, 8 Nov 2012 21:48:46 +0000 (UTC)
commit d366306fdcad8dbe577c5ef08e20efceb084d949
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Nov 7 23:27:12 2012 +0100
Don't print beyong the limits in the timeline
.../Gui/Component/TimeReferenceWidget.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TimeReferenceWidget.cs b/LongoMatch.GUI/Gui/Component/TimeReferenceWidget.cs
index 9cd46e8..a2273cf 100644
--- a/LongoMatch.GUI/Gui/Component/TimeReferenceWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/TimeReferenceWidget.cs
@@ -105,6 +105,8 @@ namespace LongoMatch.Gui.Component
private void CairoDraw(EventExpose evnt,int height,int width) {
Time time = new Time();
+
+ width = Math.Min (width,this.Allocation.Width);
using(Cairo.Context g = Gdk.CairoHelper.Create(evnt.Window)) {
Cairo.Color color = new Cairo.Color(0, 0, 0);
/* Drawing position triangle */
@@ -132,6 +134,7 @@ namespace LongoMatch.Gui.Component
private void GdkDraw(EventExpose evnt,int height,int width) {
Time time = new Time();
+ width = Math.Min (width,this.Allocation.Width);
layout.SetMarkup("0");
this.GdkWindow.DrawLayout(this.Style.TextGC(StateType.Normal),0,height-23,layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]