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

hgtk: use 'focus' argument to focus specified field

Changeset 069cb81d9fd1

Parent eecefcfadd86

by Yuki KODAMA

Changes to 4 files · Browse files at 069cb81d9fd1 Showing diff from parent eecefcfadd86 Diff from another changeset...

 
1084
1085
1086
1087
 
1088
1089
1090
1091
1092
 
1296
1297
1298
1299
 
1300
1301
1302
1303
1304
 
1084
1085
1086
 
1087
1088
 
1089
1090
1091
 
1295
1296
1297
 
1298
1299
 
1300
1301
1302
@@ -1084,9 +1084,8 @@
  # bring up the config dialog for user to enter their username.   # But since we can't be sure they will do it right, we will   # have them to retry, to re-trigger the checking mechanism. - dlg = thgconfig.ConfigDialog(False) + dlg = thgconfig.ConfigDialog(False, focus='ui.username')   dlg.show_all() - dlg.focus_field('ui.username')   dlg.run()   dlg.hide()   self.refreshui() @@ -1296,9 +1295,8 @@
  buf.set_text('\n'.join(lines))     def msg_config(self, sender): - dlg = thgconfig.ConfigDialog(True) + dlg = thgconfig.ConfigDialog(True, focus='tortoisehg.summarylen')   dlg.show_all() - dlg.focus_field('tortoisehg.summarylen')   dlg.run()   dlg.hide()   self.refreshui()
 
677
678
679
680
 
681
682
683
684
685
 
677
678
679
 
680
681
 
682
683
684
@@ -677,9 +677,8 @@
  if os.path.basename(editor) in ('vi', 'vim', 'hgeditor'):   Prompt(_('No visual editor configured'),   _('Please configure a visual editor.'), self).run() - dlg = thgconfig.ConfigDialog(False) + dlg = thgconfig.ConfigDialog(False, focus='tortoisehg.editor')   dlg.show_all() - dlg.focus_field('tortoisehg.editor')   dlg.run()   dlg.hide()   self.ui = ui.ui()
 
235
236
237
238
 
239
240
241
242
243
 
281
282
283
284
 
285
286
287
288
289
 
235
236
237
 
238
239
 
240
241
242
 
280
281
282
 
283
284
 
285
286
287
@@ -235,9 +235,8 @@
  self._flaglist.append(['STABLE'])     def _on_conf_clicked(self, button): - dlg = thgconfig.ConfigDialog(False) + dlg = thgconfig.ConfigDialog(False, focus='email.from')   dlg.show_all() - dlg.focus_field('email.from')   dlg.run()   dlg.hide()   self._refresh(False) @@ -281,9 +280,8 @@
  if not self.repo.ui.config('smtp', 'host'):   dialog.info_dialog(self, _('Info required'),   _('You must configure SMTP')) - dlg = thgconfig.ConfigDialog(False) + dlg = thgconfig.ConfigDialog(False, focus='smtp.host')   dlg.show_all() - dlg.focus_field('smtp.host')   dlg.run()   dlg.hide()   self._refresh(False)
 
214
215
216
217
 
218
219
220
221
222
 
214
215
216
 
217
218
 
219
220
221
@@ -214,9 +214,8 @@
  threading.Thread(target=start_browser).start()     def _on_conf_clicked(self, *args): - dlg = thgconfig.ConfigDialog(True) + dlg = thgconfig.ConfigDialog(True, focus='web.name')   dlg.show_all() - dlg.focus_field('web.name')   dlg.run()   dlg.hide()   self._get_config()