Added about dialog.
[drlaunch] / src / about.py
1 #!/usr/bin/env python
2 # coding=UTF-8
3
4 # Copyright (C) 2010 Stefanos Harhalakis
5 #
6 # This file is part of DrLaunch.
7 #
8 # DrLaunch is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # DrLaunch is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with DrLaunch.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 # $Id: 0.py 2265 2010-02-21 19:16:26Z v13 $
22
23 __version__ = "$Id: 0.py 2265 2010-02-21 19:16:26Z v13 $"
24
25 from gtk import AboutDialog
26 import config
27 from about0 import HeAboutDialog
28
29 class DlgAbout(HeAboutDialog):
30     def __init__(self, *args):
31         HeAboutDialog.__init__(self, *args)
32
33     @classmethod
34     def present2(cls):
35         _copyright="""\
36 Copyright (C) 2010 Stefanos Harhalakis <v13@v13.gr>
37 Copyright (C) 2005-2010 Thomas Perl and the gPodder Team (for about0.py)
38 """
39         _description="""
40 DrLaunch is a desktop launcher widget that
41 supports portrait mode by rotating program
42 icons. Whenever the device is rotated, icons
43 are also rotated.
44 """
45
46         _license="""\
47 Send bug reports and feature requests to Stefanos Harhalakis <v13@v13.gr>
48
49 DrLaunch is free software: you can redistribute it and/or modify
50 it under the terms of the GNU General Public License as published by
51 the Free Software Foundation, either version 3 of the License, or
52 (at your option) any later version.
53
54 DrLaunch is distributed in the hope that it will be useful,
55 but WITHOUT ANY WARRANTY; without even the implied warranty of
56 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57 GNU General Public License for more details.
58
59 You should have received a copy of the GNU General Public License
60 along with DrLaunch.  If not, see <http://www.gnu.org/licenses/>.
61
62 DrLaunch uses a modified version of about.py from gpodder which is also
63 distributed under the terms of the GPLv3 license.
64 """
65
66         args={
67         "app_name":         "DrLaunch",
68         "version":          config.version,
69         "copyright":        _copyright + "\n" + _license,
70         "description":      _description,
71         "bugtracker_url":   "mailto:v13@v13.gr",
72         }
73
74         cls.present(**args)
75
76     def set_icon_name(self, icon_name):
77         print "koko"
78
79 # vim: set ts=8 sts=4 sw=4 noet formatoptions=r ai nocindent:
80