[tomboy/gnome-2-28] Display the correct version of manual as help (bug #601067)



commit 6ec358cd988400fe5248ec8e7bfda5ad5a66d084
Author: Stefan Cosma <stefan cosma gmail com>
Date:   Sat Nov 7 15:57:16 2009 +0200

    Display the correct version of manual as help (bug #601067)

 Tomboy/MacApplication.cs     |    3 ++-
 Tomboy/WindowsApplication.cs |    4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/Tomboy/MacApplication.cs b/Tomboy/MacApplication.cs
index b8a6c4a..e23e3a9 100644
--- a/Tomboy/MacApplication.cs
+++ b/Tomboy/MacApplication.cs
@@ -284,7 +284,8 @@ namespace Tomboy
 
 		public virtual void DisplayHelp (string help_uri, Gdk.Screen screen)
 		{
-			OpenUrl ("http://library.gnome.org/users/tomboy/0.12/";, screen);
+			Match version = Regex.Match (Defines.VERSION, @"^\d+\.\d+");
+			OpenUrl (string.Format ("http://library.gnome.org/users/tomboy/{0}/";, version.Value), screen);
 		}
 
 		#endregion
diff --git a/Tomboy/WindowsApplication.cs b/Tomboy/WindowsApplication.cs
index 4bbb27b..6fa43d7 100644
--- a/Tomboy/WindowsApplication.cs
+++ b/Tomboy/WindowsApplication.cs
@@ -26,6 +26,7 @@
 
 using System;
 using System.IO;
+using System.Text.RegularExpressions;
 
 namespace Tomboy
 {
@@ -119,7 +120,8 @@ namespace Tomboy
 
 		public virtual void DisplayHelp (string help_uri, Gdk.Screen screen)
 		{
-			OpenUrl ("http://library.gnome.org/users/tomboy/0.12/";, screen);
+			Match version = Regex.Match (Defines.VERSION, @"^\d+\.\d+");
+			OpenUrl (string.Format("http://library.gnome.org/users/tomboy/{0}/";, version.Value), screen);
 		}
 
 		#endregion



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