home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.4)
-
- from os.path import join
- from gettext import gettext as _
- from invest.defs import VERSION
- import invest
- import gtk
- import gtk.gdk as gtk
- import gnomevfs
- import gobject
-
- def on_email(about, mail):
- gnomevfs.url_show('mailto:%s' % mail)
-
-
- def on_url(about, link):
- gnomevfs.url_show(link)
-
- gtk.about_dialog_set_email_hook(on_email)
- gtk.about_dialog_set_url_hook(on_url)
- invest_logo = None
-
- try:
- invest_logo = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, 'invest.svg'), 96, 96)
- except Exception:
- msg = None
-
-
- def show_about():
- about = gtk.AboutDialog()
- infos = {
- 'name': _('Invest'),
- 'logo': invest_logo,
- 'version': VERSION,
- 'comments': _('Track your invested money.'),
- 'copyright': 'Copyright \xc2\xa9 2004-2005 Raphael Slinckx.',
- 'website': 'http://raphael.slinckx.net/invest',
- 'website-label': _('Invest Website') }
- about.set_authors([
- 'Raphael Slinckx <raphael@slinckx.net>'])
- about.set_translator_credits(_('translator-credits'))
- for prop, val in infos.items():
- about.set_property(prop, val)
-
- about.connect('response', (lambda self: self.destroy()))
- about.show_all()
-
-