/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: Jelmer Vernooij
  • Date: 2008-06-29 19:18:34 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: jelmer@samba.org-20080629191834-ha2ecpv5szt96nge
Make sure signed testament matches repository data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import gtk.glade
25
25
 
26
26
 
27
 
def about():
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
37
 
 
38
 
    # Load AboutDialog description
39
 
    dglade = gtk.glade.XML(GLADEFILENAME, 'aboutdialog')
40
 
    dialog = dglade.get_widget('aboutdialog')
41
 
 
42
 
    # Set version
43
 
    dialog.set_version(version)
44
 
 
45
 
    dialog.run()
46
 
    # Destroy the dialog
47
 
    dialog.destroy()
48
 
 
49
27
def _message_dialog(type, primary, secondary, buttons=gtk.BUTTONS_OK):
50
28
    """ Display a given type of MessageDialog with the given message.
51
29