# HG changeset patch
# User Yuki KODAMA <[email protected]>
# Date 1242888721 -32400
# Node ID e6b3c3216fd3427c7261bf5beb56edf82594b3d8
# Parent c7bbfee98310245ee37dd60225f8da6d80c82025
status: fix issue of default checkbox state
I introduced tuple structure to satisfy both providing
correct 'ctype' and msgid for gettext.
diff --git a/hggtk/status.py b/hggtk/status.py
--- a/hggtk/status.py
+++ b/hggtk/status.py
@@ -444,15 +444,21 @@
self._show_checks = {}
row, col = 0, 0
- checks = (_('modified'), _('added'), _('removed'))
+ # Tuple: (ctype, translated label)
+ checks = (('modified', _('modified')),
+ ('added', _('added')),
+ ('removed', _('removed')))
if self.count_revs() <= 1:
- checks += (_('deleted'), _('unknown'), _('clean'), _('ignored'))
+ checks += (('deleted', _('deleted')),
+ ('unknown', _('unknown')),
+ ('close', _('clean')),
+ ('ignored', _('ignored')))
- for ctype in checks:
- check = gtk.CheckButton(ctype)
- check.connect('toggled', self._show_toggle, ctype)
+ for ctuple in checks:
+ check = gtk.CheckButton(ctuple[1])
+ check.connect('toggled', self._show_toggle, ctuple[0])
table.attach(check, col, col+1, row, row+1)
- self._show_checks[ctype] = check
+ self._show_checks[ctuple[0]] = check
col += row
row = not row
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop