X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=StatusWindow.py;h=07abd4c616b7fa0a14fca888a56af4ad00d06c7c;hb=afd9117c8d1d5f614acc120f28c668655be20abf;hp=3209fed5b94e69141518965cfc87363c7dc938e1;hpb=0296b6d5afe20a15764842873917bf1d6aa34b77;p=pygdb.git diff --git a/StatusWindow.py b/StatusWindow.py index 3209fed..07abd4c 100644 --- a/StatusWindow.py +++ b/StatusWindow.py @@ -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,14 @@ 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") + + DbgTerminal.updateVim() + + +