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 4866134766793687c48d1df1fcc6483c88990d01..6dbbf2e101b5698ae01e4a35bc5e8350773c746c 100644
(file)
--- a/
MainControlWindow.py
+++ b/
MainControlWindow.py
@@
-19,12
+19,13
@@
class MainControlWindow (gtk.Window):
#Callbacks for new positions
newPosCbs = []
#Callbacks for new positions
newPosCbs = []
- def __init__(self, dbgterm,
quitonclose=Tru
e):
+ def __init__(self, dbgterm,
closecb=Non
e):
#Set up GTK stuff
gtk.Window.__init__(self)
#Set up GTK stuff
gtk.Window.__init__(self)
- if quitonclose:
- 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