/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/dialog.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-01-31 10:00:12 UTC
  • mto: (157.1.2 trunk) (170.1.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 141.
  • Revision ID: szilveszter.farkas@gmail.com-20070131100012-i120h2ictuwn2smp
Show version in About dialog if installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
def about():
28
28
    """ Display the AboutDialog. """
29
 
    import olive
 
29
    version = None
 
30
    try:
 
31
        import bzrlib.plugins.gtk
 
32
    except ImportError:
 
33
        version = 'N/A'
 
34
    else:
 
35
        version = bzrlib.plugins.gtk.__version__
30
36
    from guifiles import GLADEFILENAME
31
37
 
32
38
    # Load AboutDialog description
34
40
    dialog = dglade.get_widget('aboutdialog')
35
41
 
36
42
    # Set version
37
 
    dialog.set_version(olive.__version__)
 
43
    dialog.set_version(version)
38
44
 
39
45
    dialog.run()
40
46
    # Destroy the dialog