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

hgtk: hookup dialog response events

when the main window is a gtk.Dialog, we must tie the response
event to gtk.main_quit()

Changeset 03ae3c1a9691

Parent 457780c09f8c

by Steve Borho

Changes to one file · Browse files at 03ae3c1a9691 Showing diff from parent 457780c09f8c Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgtk.py Stacked
 
16
17
18
 
19
20
21
 
167
168
169
170
171
172
 
173
 
 
174
175
176
 
16
17
18
19
20
21
22
 
168
169
170
 
171
172
173
174
175
176
177
178
179
@@ -16,6 +16,7 @@
 from mercurial import hg, util, fancyopts, cmdutil  import hglib  import gtk +import gobject    import os  import pdb @@ -167,10 +168,12 @@
  raise hglib.ParseError(cmd, _("invalid arguments"))    def gtkrun(mainwin): - mainwin.show_all()   if hasattr(mainwin, 'display'):   mainwin.display() + mainwin.show_all()   mainwin.connect('destroy', gtk.main_quit) + if 'response' in gobject.signal_list_names(mainwin): + mainwin.connect('response', gtk.main_quit)   gtk.gdk.threads_init()   gtk.gdk.threads_enter()   gtk.main()