1
# -*- coding: utf-8 -*-
3
# Copyright (C) 2007, 2008 Toms Bauģis <toms.baugis at gmail.com>
5
# This file is part of Project Hamster.
7
# Project Hamster is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation, either version 3 of the License, or
10
# (at your option) any later version.
12
# Project Hamster is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with Project Hamster. If not, see <http://www.gnu.org/licenses/>.
21
from os.path import join
22
from defs import VERSION
25
def on_email(about, mail):
26
gtk.show_uri(gtk.gdk.Screen(), "mailto:%s" % mail, 0L)
28
def on_url(about, link):
29
gtk.show_uri(gtk.gdk.Screen(), link, 0L)
31
gtk.about_dialog_set_email_hook(on_email)
32
gtk.about_dialog_set_url_hook(on_url)
35
def __init__(self, parent = None):
36
about = gtk.AboutDialog()
39
"program-name" : _("Time Tracker"),
40
"name" : _("Time Tracker"), #this should be deprecated in gtk 2.10
42
"comments" : _("Project Hamster — track your time"),
43
"copyright" : _(u"Copyright © 2007–2009 Toms Bauģis and others"),
44
"website" : "http://projecthamster.wordpress.com/",
45
"website-label" : _("Project Hamster Website"),
46
"title": _("About Time Tracker"),
50
about.set_authors(["Toms Bauģis <toms.baugis@gmail.com>",
51
"Patryk Zawadzki <patrys@pld-linux.org>",
52
"Pēteris Caune <cuu508@gmail.com>",
53
"Juanje Ojeda <jojeda@emergya.es>"])
54
about.set_artists(["Kalle Persson <kalle@kallepersson.se>"])
56
about.set_translator_credits(_("translator-credits"))
58
for prop, val in infos.items():
59
about.set_property(prop, val)
61
about.set_logo_icon_name("hamster-applet")
63
about.connect("response", lambda self, *args: self.destroy())