# HG changeset patch
# User Sune Foldager <[email protected]>
# Date 1256302916 -7200
# Branch stable
# Node ID fae701274d44643b2081973ee6e05853c91d8529
# Parent f5ec4035ce66ef656dabdf14e05eea87da00abae
history: on double click, activate visual diff directly
Instead of going through the top most menu item in the popup menu. This
currently doesn't work for the changelog, and also seems more complicated
than necessary.
diff --git a/tortoisehg/hgtk/changeset.py b/tortoisehg/hgtk/changeset.py
--- a/tortoisehg/hgtk/changeset.py
+++ b/tortoisehg/hgtk/changeset.py
@@ -690,9 +690,8 @@
opts = {'change':str(self.currev), 'bundle':self.bfile}
self._do_diff([self.curfile], opts)
- def file_row_act(self, tree, path, column) :
- 'Default action is the first entry in the context menu'
- self.filemenu.get_children()[0].activate()
+ def file_row_act(self, tree, path, column):
+ self.diff_file_rev(None)
return True
def save_file_rev(self, menuitem):
diff --git a/tortoisehg/hgtk/history.py b/tortoisehg/hgtk/history.py
--- a/tortoisehg/hgtk/history.py
+++ b/tortoisehg/hgtk/history.py
@@ -1902,8 +1902,7 @@
return True
def tree_row_act(self, tree, path, column) :
- 'Default action is the first entry in the context menu'
- self.tree_context_menu().get_children()[0].activate()
+ self.vdiff_change(None)
return True
def run(ui, *pats, **opts):
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop