Changeset 03ae3c1a9691…
Parent 457780c09f8c…
by
Changes to one file · Browse files at 03ae3c1a9691 Showing diff from parent 457780c09f8c Diff from another changeset...
@@ -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()
|
Loading...