/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-27 19:11:59 UTC
  • mfrom: (0.8.90 merge)
  • mto: (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 103.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060927191159-cc4e54f613575779
Merge all changes. Release 0.11.0.

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
 
from viz.bzrkapp import BzrkApp
 
35
nobzrgtk = False
 
36
try:
 
37
    from bzrlib.plugins.gtk.viz.branchwin import BranchWindow
 
38
except ImportError:
 
39
    nobzrgtk = True
36
40
 
37
41
class OliveLog:
38
42
    """ Display Log (bzrk) window and perform the needed actions. """
62
66
        if self.notbranch:
63
67
            self.dialog.error_dialog(_('Directory is not a branch'),
64
68
                                     _('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.'))
65
72
        else:
66
 
            self.app = BzrkApp()
67
 
            self.app.show(self.branch, self.revid, None)
 
73
            window = BranchWindow()
 
74
            window.set_branch(self.branch, self.revid, None)
 
75
            window.show()