/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 dialog.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-02-04 12:11:31 UTC
  • mto: (157.1.3 trunk) (170.1.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 160.
  • Revision ID: szilveszter.farkas@gmail.com-20070204121131-fikodh5efn2jgi81
Some trivial fixes regarding module imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
def about():
28
28
    """ Display the AboutDialog. """
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__
36
 
    from guifiles import GLADEFILENAME
 
29
    from bzrlib.plugins.gtk import __version__
 
30
    from bzrlib.plugins.gtk.olive.guifiles import GLADEFILENAME
37
31
 
38
32
    # Load AboutDialog description
39
33
    dglade = gtk.glade.XML(GLADEFILENAME, 'aboutdialog')
40
34
    dialog = dglade.get_widget('aboutdialog')
41
35
 
42
36
    # Set version
43
 
    dialog.set_version(version)
 
37
    dialog.set_version(__version__)
44
38
 
45
39
    dialog.run()
46
40
    # Destroy the dialog