home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / deskbar / ui / About.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  2.0 KB  |  45 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. from os.path import join
  5. from gettext import gettext as _
  6. from deskbar.defs import VERSION
  7. from deskbar.Utils import load_icon
  8. import gtk
  9. import gtk.gdk as gtk
  10. import gnomevfs
  11. import gobject
  12. import deskbar
  13.  
  14. def on_email(about, mail):
  15.     gnomevfs.url_show('mailto:%s' % mail)
  16.  
  17.  
  18. def on_url(about, link):
  19.     gnomevfs.url_show(link)
  20.  
  21. gtk.about_dialog_set_email_hook(on_email)
  22. gtk.about_dialog_set_url_hook(on_url)
  23.  
  24. def show_about():
  25.     about = gtk.AboutDialog()
  26.     infos = {
  27.         'name': _('Deskbar'),
  28.         'logo-icon-name': 'deskbar-applet',
  29.         'version': VERSION,
  30.         'comments': _('An all-in-one action bar.'),
  31.         'copyright': 'Copyright \xc2\xa9 2004-2006 Nigel Tao, Raphael Slinckx, Mikkel Kamstrup Erlandsen.',
  32.         'website': 'http://raphael.slinckx.net/deskbar',
  33.         'website-label': _('Deskbar Website') }
  34.     about.set_authors([
  35.         'Nigel Tao <nigel.tao@myrealbox.com>',
  36.         'Raphael Slinckx <raphael@slinckx.net>',
  37.         'Mikkel Kamstrup Erlandsen <kamstrup@daimi.au.dk>'])
  38.     about.set_translator_credits(_('translator-credits'))
  39.     for prop, val in infos.items():
  40.         about.set_property(prop, val)
  41.     
  42.     about.connect('response', (lambda self: self.destroy()))
  43.     about.show_all()
  44.  
  45.