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

  • Committer: Jelmer Vernooij
  • Date: 2007-07-13 23:09:47 UTC
  • Revision ID: jelmer@samba.org-20070713230947-0bngzxibg52vhmjo
Move olive about dialog into olive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
from bzrlib.plugins.gtk.push import PushDialog
56
56
from bzrlib.plugins.gtk.revbrowser import RevisionBrowser
57
57
 
 
58
def about():
 
59
    """ Display the AboutDialog. """
 
60
    from bzrlib.plugins.gtk import __version__
 
61
    from bzrlib.plugins.gtk.olive.guifiles import GLADEFILENAME
 
62
 
 
63
    # Load AboutDialog description
 
64
    dglade = gtk.glade.XML(GLADEFILENAME, 'aboutdialog')
 
65
    dialog = dglade.get_widget('aboutdialog')
 
66
 
 
67
    # Set version
 
68
    dialog.set_version(__version__)
 
69
 
 
70
    dialog.run()
 
71
    # Destroy the dialog
 
72
    dialog.destroy()
 
73
 
58
74
class OliveGtk:
59
75
    """ The main Olive GTK frontend class. This is called when launching the
60
76
    program. """
354
370
                return self.remote_branch.base
355
371
   
356
372
    def on_about_activate(self, widget):
357
 
        from bzrlib.plugins.gtk.dialog import about
358
373
        about()
359
 
        
360
374
    
361
375
    def on_button_history_browse_clicked(self, widget):
362
376
        """ Browse for revision button handler. """