OS.gtk_tree_view_scroll_to_cell (handle, path, 0, false, 0, 0);
OS.gtk_widget_realize (handle); GdkRectangle cellRect = new GdkRectangle (); OS.gtk_tree_view_get_cell_area (handle, path, 0, cellRect); GdkRectangle visibleRect = new GdkRectangle (); OS.gtk_tree_view_get_visible_rect (handle, visibleRect); OS.gtk_tree_view_scroll_to_cell (handle, path, 0, false, 0f, 0f); int height = Math.min (visibleRect.height, cellRect.height); if (cellRect.y + height > visibleRect.y + visibleRect.height) { int tree_y = visibleRect.y + cellRect.y - visibleRect.height + cellRect.height; OS.gtk_tree_view_scroll_to_point (handle, -1, tree_y); }
public void showSelection () {	checkWidget();	int index = getSelectionIndex ();	if (index == -1) return;	int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());	OS.gtk_tree_model_iter_nth_child (modelHandle, iter, 0, index);	int /*long*/ path = OS.gtk_tree_model_get_path (modelHandle, iter);	OS.gtk_tree_view_scroll_to_cell (handle, path, 0, false, 0, 0);	OS.gtk_tree_path_free (path);	OS.g_free (iter);}