[longomatch] Factor out some constants from to Common/Constants
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Factor out some constants from to Common/Constants
- Date: Thu, 25 Mar 2010 20:49:39 +0000 (UTC)
commit 9c1eebd016bde12ef164407818a64424b9956f5b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Mar 20 02:05:55 2010 +0100
Factor out some constants from to Common/Constants
LongoMatch/Common/Constants.cs | 17 +++++++++++++++--
LongoMatch/Gui/MainWindow.cs | 15 +++------------
2 files changed, 18 insertions(+), 14 deletions(-)
---
diff --git a/LongoMatch/Common/Constants.cs b/LongoMatch/Common/Constants.cs
index be085be..9eadbc0 100644
--- a/LongoMatch/Common/Constants.cs
+++ b/LongoMatch/Common/Constants.cs
@@ -22,8 +22,21 @@ namespace LongoMatch.Common
{
class Constants{
+ public const string COPYRIGHT = "Copyright ©2007-2010 Andoni Morales Alastruey";
+
public const string FAKE_PROJECT = "@Fake Project@";
+ public const string LICENSE =
+@"This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.";
+
public const string TRANSLATORS =
@"Andoni Morales Alastruey (es)
Mario Blättermann (de)
@@ -33,7 +46,7 @@ Matej UrbanÄ?iÄ? (sl)";
public const int THUMBNAIL_MAX_WIDTH = 100;
public const int THUMBNAIL_MAX_HEIGHT = 100;
-
+
+ public const string WEBSITE = "http://www.longomatch.ylatuya.es";
}
-
}
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index af2bee2..b7aa3a7 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -430,18 +430,9 @@ namespace LongoMatch.Gui
if (Environment.OSVersion.Platform == PlatformID.Unix)
about.ProgramName = "LongoMatch";
about.Version = String.Format("{0}.{1}.{2}",version.Major,version.Minor,version.Build);
- about.Copyright = "Copyright ©2007-2009 Andoni Morales Alastruey";
- about.Website = "http://www.longomatch.ylatuya.es";
- about.License =
- @"This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.";
+ about.Copyright = Constants.COPYRIGHT;
+ about.Website = Constants.WEBSITE;
+ about.License = Constants.LICENSE;
about.Authors = new string[] {"Andoni Morales Alastruey"};
about.Artists = new string[] {"Bencomo González Marrero"};
about.TranslatorCredits = Constants.TRANSLATORS;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]