Gtk::ScrolledWindow Question

By using this line of code:

   textview->scroll_to(textview->get_buffer()->get_insert(), 0);

... the ScrolledWindow scrolls to show the cursor on the screen. My problem is that if the ScrolledWindow contains an HBox that contains a TextView, the above code does not work. The vertical scrollbar flickers down for a fraction of a second, but returns immediately to the top of the buffer. Any ideas?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]