# HG changeset patch
# User Adrian Buehlmann <adr...@cadifra.com>
# Date 1253188963 -7200
# Node ID 1ce6b7a126e862b25bd286dffa9b669d27a77b15
# Parent  4aa1f505e81b317d2d2602cf60665a2780d5d1d2
status: refactor get_status_types (step 1)

move code block further down

diff --git a/tortoisehg/hgtk/status.py b/tortoisehg/hgtk/status.py
--- a/tortoisehg/hgtk/status.py
+++ b/tortoisehg/hgtk/status.py
@@ -471,11 +471,6 @@ class GStatus(gdialog.GDialog):
     ### End of overrides ###
 
     def get_status_types(self):
-        table = gtk.Table(rows=2, columns=3)
-        table.set_col_spacings(8)
-
-        self._show_checks = {}
-        row, col = 0, 0
         # Tuple: (ctype, translated label)
         checks = (('modified', _('M: modified')),
                   ('added',    _('A: added')),
@@ -486,6 +481,12 @@ class GStatus(gdialog.GDialog):
                        ('clean',   _('C: clean')),
                        ('ignored', _('I: ignored')))
 
+        table = gtk.Table(rows=2, columns=3)
+        table.set_col_spacings(8)
+
+        self._show_checks = {}
+        row, col = 0, 0
+
         for ctuple in checks:
             check = gtk.CheckButton(ctuple[1])
             check.connect('toggled', self.show_toggle, ctuple[0])

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to