Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

shellconf: reintroduce notebook

Changeset db41d700cc7a

Parent 53204eb3f7ee

by Adrian Buehlmann

Changes to one file · Browse files at db41d700cc7a Showing diff from parent 53204eb3f7ee Diff from another changeset...

 
32
33
34
35
 
 
 
 
 
36
37
38
39
40
41
42
43
44
45
46
47
48
 
 
 
 
49
50
51
 
 
52
53
 
54
55
56
 
112
113
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
116
117
118
 
119
120
121
 
147
148
149
 
 
 
150
151
152
 
179
180
181
 
 
 
 
 
 
 
 
 
182
183
184
 
32
33
34
 
35
36
37
38
39
40
 
 
 
 
 
 
 
 
 
 
 
 
41
42
43
44
45
 
 
46
47
48
 
49
50
51
52
 
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
 
132
133
134
135
 
161
162
163
164
165
166
167
168
169
 
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
@@ -32,25 +32,21 @@
  vbox.set_border_width(5)   self.add(vbox)   - # Options page + # 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()   - ## Overlays group - ovframe = gtk.Frame(_('Overlays')) - ovframe.set_border_width(2) - vbox.pack_start(ovframe, False, False, 2) - ovcvbox = gtk.VBox() - ovframe.add(ovcvbox) - hbox = gtk.HBox() - ovcvbox.pack_start(hbox, False, False, 2) - self.ovenable = gtk.CheckButton(_('Enable overlays')) - hbox.pack_start(self.ovenable, False, False, 2) - self.lclonly = gtk.CheckButton(_('Local disks only')) - hbox.pack_start(self.lclonly, False, False, 2) + # Context Menu page + cmenuframe = self.add_page(notebook, _('Context Menu')) + cmenuvbox = gtk.VBox() + cmenuframe.add(cmenuvbox)   - ## Context Menu group - cmframe = gtk.Frame(_('Context Menu')) + ## Top/Sub Menu items group + cmframe = gtk.Frame(_('Menu Items'))   cmframe.set_border_width(2) - vbox.pack_start(cmframe, True, True, 2) + cmenuvbox.pack_start(cmframe, True, True, 2)     table = gtk.Table(2, 3)   cmframe.add(table) @@ -112,10 +108,28 @@
  subbutton.connect('clicked', self.sub_clicked)   mbbox.add(subbutton)   + # Icons page + iconsframe = self.add_page(notebook, _('Icons')) + iconsvbox = gtk.VBox() + iconsframe.add(iconsvbox) + + ## Overlays group + ovframe = gtk.Frame(_('Overlays')) + ovframe.set_border_width(2) + iconsvbox.pack_start(ovframe, False, False, 2) + ovcvbox = gtk.VBox() + ovframe.add(ovcvbox) + hbox = gtk.HBox() + ovcvbox.pack_start(hbox, False, False, 2) + self.ovenable = gtk.CheckButton(_('Enable overlays')) + hbox.pack_start(self.ovenable, False, False, 2) + self.lclonly = gtk.CheckButton(_('Local disks only')) + hbox.pack_start(self.lclonly, False, False, 2) +   ## Taskbar group   taskbarframe = gtk.Frame(_('Taskbar'))   taskbarframe.set_border_width(2) - vbox.pack_start(taskbarframe, False, False, 2) + iconsvbox.pack_start(taskbarframe, False, False, 2)   taskbarbox = gtk.VBox()   taskbarframe.add(taskbarbox)   hbox = gtk.HBox() @@ -147,6 +161,9 @@
  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) @@ -179,6 +196,15 @@
  self.apply.set_sensitive(False)   righthbbox.pack_start(self.apply, False, False)   + def add_page(self, notebook, tab): + frame = gtk.Frame() + frame.set_border_width(5) + frame.set_shadow_type(gtk.SHADOW_NONE) + frame.show() + label = gtk.Label(tab) + notebook.append_page(frame, label) + return frame +   def load_shell_configs(self):   overlayenable = True   localdisks = False