title: How to auto-scroll a gtk.scrolledwindow?
body: <p>I have a treeview-widget inside a <code>ScrolledWindow</code>, which is populated during runtime. I want the <code>ScrolledWindow</code> to auto-scroll to the end of the list. I "solved" the problem, by adjusting the <code>vadjustment</code> of the <code>ScrolledWindow</code>, everytime a row is inserted into the treeview. e.g:</p>
  
  <pre><code>if new_line_in_row:
     adj = self.scrolled_window.get_vadjustment()
     adj.set_value( adj.upper - adj.page_size )
  </code></pre>
  
  <p>If i run the code in an interactive ipython session and set the value by myself, everything works as expected.</p>
  
  <p>If i run the code with the default python interpreter, the auto-scroll doesn't work all the time. I debugged the code and the problem seems be, that the adjustment values have some kind of "lag" and are only changed after some period of time.</p>
  
  <p>My question is: how do I scroll, reliably, to maximum position of the <code>ScrolledWindow</code>? is a special signal generated which i can use? or is there a better way to set the <code>adjustment-value</code>?</p>