[gnome-clocks] Move license blurb to __init__



commit 60c6cbf89f21a7aef37feaa9a68d192b54d92685
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Jan 6 21:25:10 2013 +0100

    Move license blurb to __init__

 gnomeclocks/__init__.py |   25 ++++++++++++++++++++++---
 gnomeclocks/app.py      |   19 ++-----------------
 2 files changed, 24 insertions(+), 20 deletions(-)
---
diff --git a/gnomeclocks/__init__.py b/gnomeclocks/__init__.py
index 917d541..cdcd8bc 100644
--- a/gnomeclocks/__init__.py
+++ b/gnomeclocks/__init__.py
@@ -51,6 +51,25 @@ AUTHORS = [
 
 
 COPYRIGHTS = \
-    """2011 Â Collabora Ltd.
-       2012 Â Collabora Ltd., Seif Lotfy
-              Emily Gonyer, Eslam Mostafa, Paolo Borelli"""
+    "2011 Â Collabora Ltd.\n" \
+    "2012 Â Collabora Ltd., Seif Lotfy, Emily Gonyer\n" \
+    "Eslam Mostafa, Paolo Borelli, Volker Sobek"
+
+
+LICENSE = \
+    "GNOME Clocks 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.\n" \
+    "\n" \
+    "GNOME Clocks 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.\n" \
+    "\n" \
+    "You should have received a copy of the GNU General" \
+    "Public License along with GNOME Clocks; if not, write" \
+    "to the Free Software Foundation, Inc., 51 Franklin" \
+    "Street, Fifth Floor, Boston, MA  02110-1301  USA"
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 9eab3ad..9958608 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -25,7 +25,7 @@ from stopwatch import Stopwatch
 from timer import Timer
 from widgets import Toolbar, Embed
 from utils import Dirs
-from gnomeclocks import VERSION, AUTHORS, COPYRIGHTS
+from gnomeclocks import VERSION, AUTHORS, COPYRIGHTS, LICENSE
 
 
 class Window(Gtk.ApplicationWindow):
@@ -115,22 +115,7 @@ class Window(Gtk.ApplicationWindow):
         about.set_website_label(_("GNOME Clocks"))
         about.set_wrap_license("true")
         about.set_license_type(Gtk.License.GPL_2_0)
-        about.set_license("GNOME Clocks 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.\n"
-            "  \n"
-            "GNOME Clocks 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.\n"
-            "  \n"
-            "You should have received a copy of the GNU General"
-            " Public License along with GNOME Clocks; if not, write"
-            " to the Free Software Foundation, Inc., 51 Franklin"
-            " Street, Fifth Floor, Boston, MA  02110-1301  USA\n")
+        about.set_license(LICENSE)
         about.connect("response", lambda w, r: about.destroy())
         about.set_modal(True)
         about.set_transient_for(self)



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