~ubuntu-branches/ubuntu/natty/pytrainer/natty-proposed

« back to all changes in this revision

Viewing changes to pytrainer/gui/aboutdialog.py

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-12-13 03:01:28 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213030128-jbu18iml98hm5yfk
Tags: 1.7.0-1ubuntu1
* Merge from debian unstable (LP: #477875), Ubuntu remaining changes:
  - Replace Depends on iceweasel with firefox | abrowser.
  - Add --install-layout=deb to setup.py install arguments to prevent FTBFS
    with Python 2.6 on Ubuntu.
  - Bump-up debhelper, python-dev build-dependencies.
* Remove python-glade2 (libglade -> gtkbuilder transition).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
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
21
21
 
22
22
import gtk
 
23
import pytrainer.lib.webUtils
23
24
 
24
25
class About:
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
28
33
 
29
34
        def run(self):
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)
41
47