diff --git a/bin/curvecalc b/bin/curvecalc --- a/bin/curvecalc +++ b/bin/curvecalc @@ -66,7 +66,8 @@ class Main(object): # this is the only one i found that would set the size right, # but it's a minimum size, which i don't really want mainwin.set_size_request(1000, 1000) - + + wtree.get_object("subterms").connect("add", self.onSubtermChildAdded) self.add_subterms_for_song(song, curveset, subterms) self.refreshCurveView() @@ -106,6 +107,11 @@ class Main(object): gtk.rc_reparse_all() reactor.callLater(1, self.refreshTheme) + def onSubtermChildAdded(self, subtermsTable, *args): + # this would probably work, but isn't getting called + v = subtermsTable.get_parent().props.vadjustment + v.props.value = v.props.upper + def onQuit(self, *args): reactor.crash() # there's a hang after this, maybe in sem_wait in two