/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: Mateusz Korniak
  • Date: 2007-07-21 13:16:33 UTC
  • mto: This revision was merged to the branch mainline in revision 248.
  • Revision ID: matkor@laptop-hp-20070721131633-t40kxs20j1q2fvvc
Context menu "Remove and delete added"
Acts like "Remove" but also deletes file locally.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    pass
27
27
 
28
28
import gtk
 
29
from dialog import question_dialog
29
30
 
30
31
import bzrlib.errors as errors
31
32
from bzrlib.workingtree import WorkingTree
32
33
 
33
 
from bzrlib.plugins.gtk.dialog import error_dialog, info_dialog, question_dialog, warning_dialog
 
34
from bzrlib.plugins.gtk.dialog import error_dialog, info_dialog, warning_dialog
34
35
from bzrlib.plugins.gtk.errors import show_bzr_error
35
36
from bzrlib.plugins.gtk.annotate.gannotate import GAnnotateWindow
36
37
from bzrlib.plugins.gtk.annotate.config import GAnnotateConfig
196
197
        branch = wt.branch
197
198
        file_id = wt.path2id(wt.relpath(os.path.join(directory, filename)))
198
199
        
199
 
        window = GAnnotateWindow(all=False, plain=False, parent=self.app)
 
200
        window = GAnnotateWindow(all=False, plain=False)
200
201
        window.set_title(os.path.join(directory, filename) + " - Annotate")
201
202
        config = GAnnotateConfig(window)
202
203
        window.show()
302
303
    def diff(self, action):
303
304
        """ Right context menu -> Diff """
304
305
        wt = WorkingTree.open_containing(self.path)[0]
305
 
        window = DiffWindow(self.app)
 
306
        window = DiffWindow()
306
307
        parent_tree = wt.branch.repository.revision_tree(wt.branch.last_revision())
307
308
        window.set_diff(wt.branch.nick, wt, parent_tree)
308
309
        window.set_file(wt.relpath(self.path + os.sep + self.selected))