# HG changeset patch # User drewp@bigasterisk.com # Date 1371286291 0 # Node ID 16c771461cde09d94fc9957370ae21016808c1cb # Parent a472171c50e4da0bf787661f1d3b1fd2803531bc attempt to fix zoom corruption when CC song changes, but this didn't work Ignore-this: 819c2ecbb657cae8ca4c4bd7e32c3486 diff -r a472171c50e4 -r 16c771461cde bin/curvecalc --- a/bin/curvecalc Sat Jun 15 08:46:23 2013 +0000 +++ b/bin/curvecalc Sat Jun 15 08:51:31 2013 +0000 @@ -76,6 +76,7 @@ def setSong(): songChoice(graph.value(session, L9['currentSong'])) + dispatcher.send("song_has_changed") graph.addHandler(setSong) # next here, watch songChoice and patch the graph def songToGraph(newSong): diff -r a472171c50e4 -r 16c771461cde light9/curvecalc/curveview.py --- a/light9/curvecalc/curveview.py Sat Jun 15 08:46:23 2013 +0000 +++ b/light9/curvecalc/curveview.py Sat Jun 15 08:51:31 2013 +0000 @@ -1149,6 +1149,7 @@ dispatcher.connect(self.clear_curves, "clear_curves") dispatcher.connect(self.add_curve, "add_curve", sender=self.curveset) dispatcher.connect(self.set_featured_curves, "set_featured_curves") + dispatcher.connect(self.song_has_changed, "song_has_changed") self.newcurvename = gtk.EntryBuffer("", 0) @@ -1163,6 +1164,9 @@ """curveset is about to re-add all new curves""" while self.allCurveRows: self.allCurveRows.pop().destroy() + + def song_has_changed(self): + self.zoomControl.redrawzoom() def takeFocus(self, *args): """the whole curveset's eventbox is what gets the focus, currently, so