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 thgconfig: add button to allow reloading config file

This feature should be removed when we get solution of monitoring
config files.

Changeset 6eed5860fb97

Parent b570c9e9e1e4

by Yuki KODAMA

Changes to one file · Browse files at 6eed5860fb97 Showing diff from parent b570c9e9e1e4 Diff from another changeset...

 
591
592
593
 
 
594
 
595
596
597
598
599
600
601
602
 
603
604
605
606
 
 
 
 
607
608
609
 
591
592
593
594
595
596
597
598
599
600
601
602
603
 
 
604
605
606
607
 
608
609
610
611
612
613
614
@@ -591,19 +591,24 @@
  self.vbox.pack_start(wrapbox)     # create combo to select the target + hbox = gtk.HBox() + wrapbox.pack_start(hbox, False, False, 1)   combo = gtk.combo_box_new_text() + hbox.pack_start(combo, False, False)   combo.append_text(_('User global settings'))   if repo:   combo.append_text(_('%s repository settings') % hglib.toutf(name))   combo.connect('changed', self.fileselect)   self.confcombo = combo   - hbox = gtk.HBox() - hbox.pack_start(combo, False, False) + # command buttons   edit = gtk.Button(_('Edit File'))   hbox.pack_start(edit, False, False, 6)   edit.connect('clicked', self.edit_clicked) - wrapbox.pack_start(hbox, False, False, 1) + + reload = gtk.Button(_('Reload')) + hbox.pack_start(reload, False, False) + reload.connect('clicked', lambda *a: self.refresh())     # insert padding of between combo and middle pane   wrapbox.pack_start(gtk.VBox(), False, False, 4)