18
18
#You should have received a copy of the GNU General Public License
19
19
#along with this program; if not, write to the Free Software
20
#Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
import pytrainer.lib.webUtils
25
26
def __init__(self,data_path = None, version = None):
27
def url_hook(dialog, url):
28
pytrainer.lib.webUtils.open_url_in_browser(url)
29
# Available in PyGTK 2.6 and above
30
gtk.about_dialog_set_url_hook(url_hook)
26
31
self.data_path = data_path
27
32
self.version = version
30
authors = ["Fiz Vázquez <vud1@sindominio.net>\nDavid García Granda <dgranda@gmail.com>"]
31
translator_credits = "Basque: Jabier Santamaria <mendikote@gmail.com>\nCatalan: Eloi Crespillo Itchart <eloi@ikuszen.com>\nCzech: Lobus Pokorny <sp.pok@seznam.cz>\nFrench: Dj <dj@djremixtheblog.be>\nFrench: Pierre Gaigé <pgaige@free.fr>\nNorwegian: Havard Davidsen <havard.davidsen@gmail.com>\nPolish: Seweryn Kokot <skokot@po.opole.pl>\nGerman: Aleks <aleks@schnecklecker.de>\nSpanish: Fiz Vázquez <vud1@sindominio.net>"
32
license = "PyTrainer - The free sport tracking center\nCopyright (C) 2005-08 Fiz Vázquez\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"
35
authors = ["Fiz Vázquez <vud1@sindominio.net>\nDavid García Granda <dgranda@gmail.com>\nJohn Blance <john.blance@gmail.com>\n\n-Package maintainers:\n\nRedHat/Fedora: Douglas E. Warner <silfreed@silfreed.net>\nDebian: Noèl Köthe <noel@debian.org>\nUbuntu: Kevin Dwyer <kevin@pheared.net>, Alessio Treglia <quadrispro@ubuntu.com>"]
36
translator_credits = "Basque: Jabier Santamaria <mendikote@gmail.com>\nCatalan: Eloi Crespillo Itchart <eloi@ikuszen.com>\nCzech: Lobus Pokorny <sp.pok@seznam.cz>\nFrench: Dj <dj@djremixtheblog.be>, Pierre Gaigé <pgaige@free.fr>\nNorwegian: Havard Davidsen <havard.davidsen@gmail.com>\nPolish: Seweryn Kokot <skokot@po.opole.pl>\nGerman: Aleks <aleks@schnecklecker.de>, Noèl Köthe <noel@debian.org>\nSpanish: Fiz Vázquez <vud1@sindominio.net>, David García Granda <dgranda@gmail.com>"
37
license = "PyTrainer - The free sport tracking center\nCopyright (C) 2005-09 Fiz Vázquez\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
33
38
about_dialog = gtk.AboutDialog()
34
39
about_dialog.set_destroy_with_parent(True)
35
40
about_dialog.set_name("pyTrainer")
36
41
about_dialog.set_version(self.version)
37
about_dialog.set_copyright("Copyright \xc2\xa9 2005-8 Fiz Vázquez")
42
about_dialog.set_copyright("Copyright \xc2\xa9 2005-9 Fiz Vázquez")
38
43
about_dialog.set_website("http://sourceforge.net/projects/pytrainer")
44
about_dialog.set_website_label("http://sourceforge.net/projects/pytrainer")
39
45
about_dialog.set_comments("The free sport tracking center")
40
46
about_dialog.set_license(license)