Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

shellconf: simplify dialog

remove about button, there's no need to launch it from here any more.
remove notebook, shrink vertical size

Changeset 564f7f808e63

Parent 474766383f4e

by Steve Borho

Changes to one file · Browse files at 564f7f808e63 Showing diff from parent 474766383f4e Diff from another changeset...

 
21
22
23
24
 
25
26
27
28
29
30
 
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
53
54
55
 
62
63
64
65
 
66
67
68
 
127
128
129
130
 
131
132
133
 
154
155
156
157
158
159
160
161
162
 
166
167
168
169
170
171
172
173
174
 
201
202
203
204
205
206
207
208
209
210
211
 
21
22
23
 
24
25
26
 
27
28
29
 
32
33
34
 
 
 
 
 
 
 
 
35
 
 
 
36
37
38
39
 
40
41
42
43
 
50
51
52
 
53
54
55
56
 
115
116
117
 
118
119
120
121
 
142
143
144
 
 
 
145
146
147
 
151
152
153
 
 
 
154
155
156
 
183
184
185
 
 
 
 
 
186
187
188
@@ -21,10 +21,9 @@
  gtklib.set_tortoise_icon(self, 'hg.ico')   gtklib.set_tortoise_keys(self)   - self.set_default_size(400, 520) + self.set_default_size(400, -1)   self.set_title(_('TortoiseHg Shell Configuration'))   - about = gtk.Button(_('About'))   okay = gtk.Button(_('OK'))   cancel = gtk.Button(_('Cancel'))   self.apply = gtk.Button(_('Apply')) @@ -33,23 +32,12 @@
  vbox.set_border_width(5)   self.add(vbox)   - # Create a new notebook, place the position of the tabs - self.notebook = notebook = gtk.Notebook() - notebook.set_tab_pos(gtk.POS_TOP) - vbox.pack_start(notebook, True, True) - notebook.show() - self.show_tabs = True - self.show_border = True -   # Options page - settingsframe = self.add_page(notebook, _('Options')) - settingsvbox = gtk.VBox() - settingsframe.add(settingsvbox)     ## Overlays group   ovframe = gtk.Frame(_('Overlays'))   ovframe.set_border_width(2) - settingsvbox.pack_start(ovframe, False, False, 2) + vbox.pack_start(ovframe, False, False, 2)   ovcvbox = gtk.VBox()   ovframe.add(ovcvbox)   hbox = gtk.HBox() @@ -62,7 +50,7 @@
  ## Context Menu group   cmframe = gtk.Frame(_('Context Menu'))   cmframe.set_border_width(2) - settingsvbox.pack_start(cmframe, False, False, 2) + vbox.pack_start(cmframe, True, True, 2)     table = gtk.Table(2, 3)   cmframe.add(table) @@ -127,7 +115,7 @@
  ## Taskbar group   taskbarframe = gtk.Frame(_('Taskbar'))   taskbarframe.set_border_width(2) - settingsvbox.pack_start(taskbarframe, False, False, 2) + vbox.pack_start(taskbarframe, False, False, 2)   taskbarbox = gtk.VBox()   taskbarframe.add(taskbarbox)   hbox = gtk.HBox() @@ -154,9 +142,6 @@
  accelgroup = gtk.AccelGroup()   self.add_accel_group(accelgroup)   - # Padding - vbox.pack_start(gtk.HBox(), False, False, 3) -   # Bottom buttons   bbox = gtk.HBox()   vbox.pack_start(bbox, False, False) @@ -166,9 +151,6 @@
  lefthbbox.set_spacing(6)   bbox.pack_start(lefthbbox, False, False)   - about.connect('clicked', self.about) - lefthbbox.pack_start(about, False, False) -   bbox.pack_start(gtk.Label(''), True, True)     righthbbox = gtk.HButtonBox() @@ -201,11 +183,6 @@
  notebook.append_page(frame, label)   return frame   - def about(self, button): - from tortoisehg.hgtk import about - dlg = about.AboutDialog() - dlg.show_all() -   def load_shell_configs(self):   overlayenable = True   localdisks = False