- pygdb saves current executed line
[pygdb.git] / StatusWindow.py
index 3209fed5b94e69141518965cfc87363c7dc938e1..3d77dea2d21b939efcf72968e87bd0a184183182 100644 (file)
@@ -10,6 +10,7 @@ import string
 import os
 import vte
 
+import Configuration
 import DbgTerminal
 import BreakpointsFrame
 import PositionFrame
@@ -23,6 +24,7 @@ class StatusWindow (gtk.Window):
                gtk.Window.__init__(self)
 
                self.debugger = debugger
+               self.debugger.gotActiveCallback += [self.updateValues]
                
                self.set_border_width(5)
                self.set_title("Status")
@@ -41,6 +43,8 @@ class StatusWindow (gtk.Window):
                                WatchesFrame.WatchesFrame(debugger), \
                                BreakpointsFrame.BreakpointsFrame(debugger) ]
 
+               #Register callback after frames!
+               self.debugger.gotActiveCallback += [self.updateValues]
 
                #First paned window
                self.paned1 = gtk.VPaned()
@@ -88,3 +92,10 @@ class StatusWindow (gtk.Window):
                for f in self.frames:
                        f.fillConfiguration(conf)
 
+
+       def updateValues(self, status, param):
+
+               conf = Configuration.Configuration()
+               self.fillConfiguration(conf)
+               conf.store(".pygdb.conf")
+