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

  • Committer: Daniel Schierbeck
  • Date: 2007-10-14 15:54:57 UTC
  • mto: This revision was merged to the branch mainline in revision 317.
  • Revision ID: daniel.schierbeck@gmail.com-20071014155457-m3ek29p4ima8ev7d
Added the new Window base class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
        branch = wt.branch
197
197
        file_id = wt.path2id(wt.relpath(os.path.join(directory, filename)))
198
198
        
199
 
        window = GAnnotateWindow(all=False, plain=False)
 
199
        window = GAnnotateWindow(all=False, plain=False, parent=self.app)
200
200
        window.set_title(os.path.join(directory, filename) + " - Annotate")
201
201
        config = GAnnotateConfig(window)
202
202
        window.show()
302
302
    def diff(self, action):
303
303
        """ Right context menu -> Diff """
304
304
        wt = WorkingTree.open_containing(self.path)[0]
305
 
        window = DiffWindow()
 
305
        window = DiffWindow(self.app)
306
306
        parent_tree = wt.branch.repository.revision_tree(wt.branch.last_revision())
307
307
        window.set_diff(wt.branch.nick, wt, parent_tree)
308
308
        window.set_file(wt.relpath(self.path + os.sep + self.selected))