/usr/lib/python2.7/dist-packages/glipper/About.py is in glipper 2.4-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | # coding=UTF-8
from gettext import gettext as _
import gtk
import glipper
def on_email(about, mail):
gtk.show_uri(None, "mailto:%s" % mail, gtk.gdk.CURRENT_TIME)
def on_url(about, link):
gtk.show_uri(None, link, gtk.gdk.CURRENT_TIME)
gtk.about_dialog_set_email_hook(on_email)
gtk.about_dialog_set_url_hook(on_url)
class About(object):
__instance = None
def __init__(self):
if About.__instance == None:
About.__instance = self
else:
About.__instance.about.present()
return
self.about = gtk.AboutDialog()
infos = {
"name" : _("Glipper"),
"logo-icon-name" : "glipper",
"version" : glipper.VERSION,
"comments" : _("A clipboard manager."),
"copyright" : "Copyright © 2007 Sven Rech, Eugenio Depalo, Karderio.\nCopyright © 2011 Laszlo Pandy",
"website" : "http://launchpad.net/glipper",
"website-label" : _("Glipper website"),
}
#about.set_artists([])
#about.set_documenters([])
self.about.set_authors(["Sven Rech <sven@gmx.de>",
"Eugenio Depalo <eugeniodepalo@mac.com>",
"Karderio <karderio@gmail.com>",
"Laszlo Pandy <laszlok2@gmail.com>"])
#translators: These appear in the About dialog, usual format applies.
self.about.set_translator_credits( _("translator-credits") )
for prop, val in infos.items():
self.about.set_property(prop, val)
self.about.connect("response", self.destroy)
self.about.show_all()
def destroy(self, dialog, response):
dialog.destroy()
About.__instance = None
|