Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

thgconfig: replace close with cancel button

Changeset 4981a2a4f9af

Parent 380aec437000

by Steve Borho

Changes to one file · Browse files at 4981a2a4f9af Showing diff from parent 380aec437000 Diff from another changeset...

 
516
517
518
519
 
520
521
522
 
697
698
699
 
 
700
701
702
 
516
517
518
 
519
520
521
522
 
697
698
699
700
701
702
703
704
@@ -516,7 +516,7 @@
  def __init__(self, configrepo=False):   """ Initialize the Dialog. """   gtk.Dialog.__init__(self, parent=None, flags=0, - buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE, + buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,   gtk.STOCK_APPLY, gtk.RESPONSE_APPLY,   gtk.STOCK_OK, gtk.RESPONSE_OK))   gtklib.set_tortoise_keys(self) @@ -697,6 +697,8 @@
  self._apply_clicked()   self.emit_stop_by_name('response')   return True + elif resp == gtk.RESPONSE_CANCEL: + return False   if self.dirty and not self.readonly:   if resp == gtk.RESPONSE_OK:   ret = 0