Scrolling with Gtk::TextView



Hi,
  I want to present some text in a Gtk::TextView, and then I want to
scroll to the end of the text in the view. I have tried the following

  Gtk::TextIter end = output_buffer->end ();
  Glib::RefPtr<Gtk::TextMark> end_mark = output_buffer->create_mark (end);
  output_view.scroll_to (end_mark);
  output_buffer->delete_mark (end_mark);

but nothing happens. Am I missing something? Or rather, what am I missing?

Cheers,
Søren


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