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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-09-25 16:28:49 UTC
  • mfrom: (0.11.14 olive)
  • mto: (0.14.1 main)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060925162849-91a1ddf3103a517f
Merge from Jelmer Vernooij's integration branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
from bzrlib.branch import Branch
33
33
import bzrlib.errors as errors
34
34
 
35
 
nobzrgtk = False
36
 
try:
37
 
    from bzrlib.plugins.gtk.viz.bzrkapp import BzrkApp
38
 
except ImportError:
39
 
    nobzrgtk = True
 
35
from bzrlib.plugins.gtk.viz.branchwin import BranchWindow
40
36
 
41
37
class OliveLog:
42
38
    """ Display Log (bzrk) window and perform the needed actions. """
66
62
        if self.notbranch:
67
63
            self.dialog.error_dialog(_('Directory is not a branch'),
68
64
                                     _('You can perform this action only in a branch.'))
69
 
        elif nobzrgtk:
70
 
            self.dialog.error_dialog(_('bzr-gtk plugin not available'),
71
 
                                     _('Please install the bzr-gtk plugin in order to have visual log support.'))
72
65
        else:
73
 
            self.app = BzrkApp()
74
 
            self.app.show(self.branch, self.revid, None, False)
 
66
            window = BranchWindow()
 
67
            window.set_branch(self.branch, self.revid, None)
 
68
            window.show()