projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- fixing problem of destroying windows -> segfault
[pygdb.git]
/
MainControlWindow.py
diff --git
a/MainControlWindow.py
b/MainControlWindow.py
index 0a24f4cfc9efa2894f157a75342caf880c935a1a..6dbbf2e101b5698ae01e4a35bc5e8350773c746c 100644
(file)
--- a/
MainControlWindow.py
+++ b/
MainControlWindow.py
@@
-19,11
+19,13
@@
class MainControlWindow (gtk.Window):
#Callbacks for new positions
newPosCbs = []
#Callbacks for new positions
newPosCbs = []
- def __init__(self, dbgterm):
+ def __init__(self, dbgterm
, closecb=None
):
#Set up GTK stuff
gtk.Window.__init__(self)
#Set up GTK stuff
gtk.Window.__init__(self)
- self.connect("destroy", lambda *w: gtk.main_quit())
+
+ if closecb!=None:
+ self.connect("destroy", lambda *w: closecb() )
#Set terminals
self.dbgterm = dbgterm
#Set terminals
self.dbgterm = dbgterm