Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

shellconf: leave labels in unicode, strip trailing white-space

Changeset 4f3e194f592e

Parent c3ce3e726a76

by Steve Borho

Changes to one file · Browse files at 4f3e194f592e Showing diff from parent c3ce3e726a76 Diff from another changeset...

 
26
27
28
29
 
30
31
32
 
36
37
38
39
 
40
41
 
42
43
44
45
 
46
47
48
 
59
60
61
62
 
63
64
65
 
180
181
182
183
 
184
185
186
 
219
220
221
222
 
223
224
225
 
26
27
28
 
29
30
31
32
 
36
37
38
 
39
40
 
41
42
43
44
 
45
46
47
48
 
59
60
61
 
62
63
64
65
 
180
181
182
 
183
184
185
186
 
219
220
221
 
222
223
224
225
@@ -26,7 +26,7 @@
 def nonzero(x): return x != 0    # writing functions -def one_str(x): +def one_str(x):   if x: return '1'   return '0'  def one_int(x): @@ -36,13 +36,13 @@
 def noop(x): return x    vars = { - # name: + # name:   # default, regkey, regtype, evalfunc, wrfunc, checkbuttonattribute - 'EnableOverlays': + 'EnableOverlays':   [True, THGKEY, REG_SZ, is_true, one_str, 'ovenable'],   'LocalDisksOnly':   [False, THGKEY, REG_SZ, is_true, one_str, 'localonly'], - 'ShowTaskbarIcon': + 'ShowTaskbarIcon':   [True, THGKEY, REG_SZ, is_true, one_str, 'show_taskbaricon'],   'HighlightTaskbarIcon':   [True, THGKEY, REG_SZ, is_true, one_str, 'highlight_taskbaricon'], @@ -59,7 +59,7 @@
  'ShowDeletedOverlay':   [True, OVLKEY, REG_DWORD, nonzero, one_int, 'enableDeletedHandler'],   'ShowAddedOverlay': - [True, OVLKEY, REG_DWORD, nonzero, one_int, 'enableAddedHandler'] + [True, OVLKEY, REG_DWORD, nonzero, one_int, 'enableAddedHandler']  }     @@ -180,7 +180,7 @@
    self.load_shell_configs()   - def load_shell_configs(self): + def load_shell_configs(self):   for name, info in vars.iteritems():   default, regkey, regtype, evalfunc, wrfunc, cbattr = info   try: @@ -219,7 +219,7 @@
  promoted = []   list = self.topmenulist   for row in range(list.count()): - label = str(list.item(row).text()) + label = unicode(list.item(row).text())   cmd = self.menu_cmds[label]   promoted.append(cmd)