I have Gtk::TreeViewinside a Gtk::ScrolledWindow. At some point, I get a string Gtk::TreeRow. How do I know if a row is in the visible area and how to scroll the ScrolledWindow so that the row is visible?
LE: I found a solution:
Glib::RefPtr<Gtk::TreeModel> model = pSEMQueueTreeView->get_model();
Gtk::TreeModel::Children children = model->children();
Gtk::TreeModel::Children::iterator it;
it = children.begin();
pSEMQueueTreeView->scroll_to_row(model->get_path(it));
source
share