# HG changeset patch
# User Wagner Bruna <wbr...@yahoo.com>
# Date 1256083111 7200
# Branch stable
# Node ID 8bec5ec815485b79a2ba2a6ed94b11c5d996e940
# Parent  3a35201070997a01e929eb91fe0c6ca3b7a764c7
tagadd: disable commit message for local tags

diff --git a/tortoisehg/hgtk/tagadd.py b/tortoisehg/hgtk/tagadd.py
--- a/tortoisehg/hgtk/tagadd.py
+++ b/tortoisehg/hgtk/tagadd.py
@@ -74,6 +74,7 @@
 
         ## tagging options
         self._local_tag = gtk.CheckButton(_('Tag is local'))
+        self._local_tag.connect('toggled', self.local_tag_toggled)
         self._replace_tag = gtk.CheckButton(_('Replace existing tag'))
         self._eng_msg = gtk.CheckButton(_('Use English commit message'))
         table.add_row(self._local_tag)
@@ -123,6 +124,13 @@
 
         self.settings.write()
 
+    def local_tag_toggled(self, checkbutton):
+        local_tag_st = checkbutton.get_active()
+        self._eng_msg.set_sensitive(not local_tag_st)
+        self._use_msg.set_sensitive(not local_tag_st)
+        use_msg_st = self._use_msg.get_active()
+        self._commit_message.set_sensitive(not local_tag_st and use_msg_st)
+
     def msg_toggled(self, checkbutton):
         state = checkbutton.get_active()
         self._commit_message.set_sensitive(state)

------------------------------------------------------------------------------
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
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to