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

stable clone, update: make dialogs resizable

Fixes #1075

Changeset d78e44c21a04

Parent ea7fab0b1264

by Yuki KODAMA

Changes to 2 files · Browse files at d78e44c21a04 Showing diff from parent ea7fab0b1264 Diff from another changeset...

 
83
84
85
86
 
87
88
89
 
115
116
117
118
 
119
120
121
 
171
172
173
174
 
175
176
177
178
179
180
 
 
 
181
182
183
 
83
84
85
 
86
87
88
89
 
115
116
117
 
118
119
120
121
 
171
172
173
 
174
175
176
177
178
179
180
181
182
183
184
185
186
@@ -83,7 +83,7 @@
    # layout table for fixed options   self.table = table = gtklib.LayoutTable() - vbox.pack_start(table, True, True, 2) + vbox.pack_start(table, False, False, 2)     ## comboentry for source paths   self.srclist, srccombo = createcombo(self.srcpath, @@ -115,7 +115,7 @@
    # expander for advanced options   self.expander = expander = gtk.Expander(_('Advanced options')) - vbox.pack_start(expander, True, True, 2) + vbox.pack_start(expander, False, False, 2)     # layout table for advanced options   table = gtklib.LayoutTable() @@ -171,13 +171,16 @@
  def get_action_map(self):   return {gtk.RESPONSE_OK: self.clone}   - def switch_to(self, normal, *args): + def switch_to(self, normal, working, *args):   self.table.set_sensitive(normal)   self.expander.set_sensitive(normal)   self.buttons['clone'].set_property('visible', normal)   self.buttons['cancel'].set_property('visible', normal)   if normal:   self.buttons['cancel'].grab_focus() + if working: + self.set_resizable(True) + self.vbox.set_child_packing(self.cmd, True, True, 6, gtk.PACK_START)     def command_done(self, returncode, useraborted, src, dest):   self.add_src_to_recent(src)
 
35
36
37
38
 
39
40
41
 
141
142
143
 
 
 
144
145
146
 
35
36
37
 
38
39
40
41
 
141
142
143
144
145
146
147
148
149
@@ -35,7 +35,7 @@
  def get_body(self, vbox):   # layout table   table = gtklib.LayoutTable() - vbox.pack_start(table, True, True, 2) + vbox.pack_start(table, False, False, 2)   self.table = table     ## revision label & combobox @@ -141,6 +141,9 @@
  self.buttons['close'].set_property('visible', normal)   if normal:   self.buttons['close'].grab_focus() + if working: + self.set_resizable(True) + self.vbox.set_child_packing(self.cmd, True, True, 6, gtk.PACK_START)   if cmd and self.opt_showlog.get_active():   self.cmd.show_log()