X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=StatusWindow.py;h=f03c11c27d579173db6641aa42d5394b842d9e52;hb=127bb50e7d884d3a413ab4b3b429e89b5dfebf74;hp=3d77dea2d21b939efcf72968e87bd0a184183182;hpb=b7f4eaf787ec9c54f36cce00bb294a8be2a862c3;p=pygdb.git diff --git a/StatusWindow.py b/StatusWindow.py index 3d77dea..f03c11c 100644 --- a/StatusWindow.py +++ b/StatusWindow.py @@ -20,9 +20,10 @@ import WatchesFrame class StatusWindow (gtk.Window): - def __init__(self, debugger): + def __init__(self, debugger, vimservername): gtk.Window.__init__(self) + self.vimservername = vimservername self.debugger = debugger self.debugger.gotActiveCallback += [self.updateValues] @@ -89,6 +90,8 @@ class StatusWindow (gtk.Window): conf.addInt("statuswnd-paned1", self.paned1.get_position()) conf.addInt("statuswnd-paned2", self.paned2.get_position()) + conf.setCommand( self.debugger.clientCmd ) + for f in self.frames: f.fillConfiguration(conf) @@ -99,3 +102,12 @@ class StatusWindow (gtk.Window): self.fillConfiguration(conf) conf.store(".pygdb.conf") + self.updateVim() + + + def updateVim(self): + + os.system('gvim --servername %s --remote-send " :GDBLoadConfig"' % \ + self.vimservername) + +