[gbrainy] Center countdown message and use default background in CountDownView



commit bc0467cbeea6835de8ce0c883c9d10cd5c01b3b7
Author: Jordi Mas <jmas softcatala org>
Date:   Tue Jun 21 07:44:00 2011 +0200

    Center countdown message and use default background in CountDownView

 src/Core/Views/CountDownView.cs |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/Core/Views/CountDownView.cs b/src/Core/Views/CountDownView.cs
index 03f892e..a9c3248 100644
--- a/src/Core/Views/CountDownView.cs
+++ b/src/Core/Views/CountDownView.cs
@@ -45,7 +45,7 @@ namespace gbrainy.Core.Views
 			finish = OnFinish;
 		}
 
-		public ISynchronizeInvoke SynchronizingObject { 
+		public ISynchronizeInvoke SynchronizingObject {
 			set { synchronize = value; }
 			get { return synchronize; }
 		}
@@ -71,9 +71,6 @@ namespace gbrainy.Core.Views
 		{
 			gr.Scale (area_width, area_height);
 
-			gr.Color = new Cairo.Color (0.8, 0.8, 0.8);
-			gr.Paint ();
-
 			gr.LineWidth = 0.01;
 			gr.Color = new Cairo.Color (0, 0, 0, 1);
 
@@ -83,7 +80,7 @@ namespace gbrainy.Core.Views
 
 			gr.SetPangoFontSize (0.35);
 			gr.MoveTo (0.37, 0.22);
-			gr.ShowPangoText (countdown_time.ToString ());
+			gr.DrawTextCentered (0.5, 0.5, countdown_time.ToString ());
 			gr.Stroke ();
 
 			gr.Arc (0.5, 0.5, 0.25, 0, 2 * Math.PI);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]