X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=BreakpointsFrame.py;h=9f1fe98c53e931c2927796ff4d035fab48ecf55c;hp=0d3bcf2cf8f5204a04d601242cf9ba5db7692610;hb=0296b6d5afe20a15764842873917bf1d6aa34b77;hpb=c90feb4c530cdb4e5abbfac044fea74d88975775 diff --git a/BreakpointsFrame.py b/BreakpointsFrame.py index 0d3bcf2..9f1fe98 100644 --- a/BreakpointsFrame.py +++ b/BreakpointsFrame.py @@ -22,6 +22,8 @@ class BreakpointsFrame (StatusFrame.StatusFrame): StatusFrame.StatusFrame.__init__(self, debugger) self.set_label("Breakpoints") + debugger.gotActiveCallback += [self.updateValues] + vbox = gtk.VBox(False, 5) self.add(vbox) @@ -115,7 +117,7 @@ class BreakpointsFrame (StatusFrame.StatusFrame): def applyConfiguration(self, conf): for b in conf.breakpoints: self.addBreakpoint(b["file"], b["lineno"], b["cond"]) - self.updateValues(None) + self.updateValues(None, None) def fillConfiguration(self, conf): iter = self.model.get_iter_first() @@ -204,10 +206,10 @@ class BreakpointsFrame (StatusFrame.StatusFrame): if not self.debugger.isActive(): return - self.updateValues(None) + self.updateValues(None, None) - def updateValues(self, pos): + def updateValues(self, status, param): bpnts = self.debugger.getBreakpoints()