diff bin/curvecalc @ 725:e8f9f4815ab4

attempt at subtermview autoscroll but it doesn't work Ignore-this: 4cb643412a6478a73526608a851ef9f4
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 14 Jun 2012 06:23:31 +0000
parents d8202a0a7fd5
children d1bff8a3b069
line wrap: on
line diff
--- a/bin/curvecalc	Thu Jun 14 03:46:52 2012 +0000
+++ b/bin/curvecalc	Thu Jun 14 06:23:31 2012 +0000
@@ -66,7 +66,8 @@
         # 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 @@
         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