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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 18:08:35 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927180835-4c295d9bb936623a
Turn some windows into dialogs.
Remove the diffwindow code from olive, 
switched to using the one from bzr-gtk instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
    
230
230
    def on_menuitem_stats_diff_activate(self, widget):
231
231
        """ Statistics/Differences... menu handler. """
232
 
        from diff import OliveDiff
233
 
        diff = OliveDiff(self.gladefile, self.comm)
234
 
        diff.display()
 
232
        from bzrlib.plugins.gtk.viz.diffwin import DiffWindow
 
233
        window = DiffWindow()
 
234
        wt = WorkingTree.open_containing(self.comm.get_path())[0]
 
235
        parent_tree = wt.branch.repository.revision_tree(wt.branch.last_revision())
 
236
        window.set_diff(wt.branch.nick, wt, parent_tree)
 
237
        window.show()
235
238
    
236
239
    def on_menuitem_stats_infos_activate(self, widget):
237
240
        """ Statistics/Informations... menu handler. """