# HG changeset patch
# User Peer Sommerlund <[email protected]>
# Date 1229210622 -3600
# Node ID 36ecd3d4d872ac5652759b9d6d7d1febad7563fe
# Parent  e29c65bdc55bbb6cd02a15f8949acd9e46212b64
thgconfig: Automatically edit added path alias

In the path tab it is possible to add a new path alias.
This patch will automatically start editing the new alias
after the path has been added.

diff -r e29c65bdc55b -r 36ecd3d4d872 hggtk/thgconfig.py
--- a/hggtk/thgconfig.py        Sat Dec 13 02:55:35 2008 +0000
+++ b/hggtk/thgconfig.py        Sun Dec 14 00:23:42 2008 +0100
@@ -335,6 +335,10 @@
         self.pathdata.set_value(iter, 0, 'new')
         self.pathdata.set_value(iter, 1, '%s' % newpath)
         self.pathtree.get_selection().select_iter(iter)
+        self.pathtree.set_cursor(
+                self.pathdata.get_path(iter),
+                self.pathtree.get_column(0), 
+                start_editing=True)
         self.refresh_path_list()
         # This method may be called from hggtk.sync, so ensure page is visible
         self.notebook.set_current_page(2)

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to