Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

thgconfig: need a delete-event hook in order to abort responses

don't ask me why. Fixes #244

http://osdir.com/ml/gnome.gtk+.csharp/2003-08/msg00075.html

Changeset 858e4addbedb

Parent b2f9f62dd17e

by Steve Borho

Changes to one file · Browse files at 858e4addbedb Showing diff from parent b2f9f62dd17e Diff from another changeset...

 
382
383
384
 
385
386
387
 
513
514
515
 
 
 
516
517
518
 
382
383
384
385
386
387
388
 
514
515
516
517
518
519
520
521
522
@@ -382,6 +382,7 @@
    # Catch close events   self.connect('response', self.should_live) + self.connect('delete-event', self.delete_event)     combo = gtk.combo_box_new_text()   combo.append_text(_('User global settings')) @@ -513,6 +514,9 @@
  thread.start()   return True   + def delete_event(self, dlg, event): + return True +   def should_live(self, *args):   if self.dirty:   ret = gdialog.Confirm(_('Confirm quit without saving?'), [], self,