OS.gtk_tree_view_scroll_to_cell (handle, path, 0, depth != 1, 0.5f, 0.5f);
isHidden = true; } else { int [] tx = new int [1]; int [] ty = new int [1]; OS.gtk_tree_view_widget_to_tree_coords (handle, rect.x, rect.y, tx, ty); rect.y = ty[0]; GdkRectangle visRect = new GdkRectangle (); OS.gtk_tree_view_get_visible_rect (handle, visRect); if (rect.y < visRect.y || rect.y + rect.height > visRect.y + visRect.height) { isHidden = true; }
void showItem (int path, boolean scroll) {	int depth = OS.gtk_tree_path_get_depth (path);	if (depth > 1) {		int [] indices = new int [depth - 1];		int indicesPtr = OS.gtk_tree_path_get_indices (path);		OS.memmove (indices, indicesPtr, indices.length * 4);		int tempPath = OS.gtk_tree_path_new ();		for (int i=0; i<indices.length; i++) {			OS.gtk_tree_path_append_index (tempPath, indices [i]);			OS.gtk_tree_view_expand_row (handle, tempPath, false);		}		OS.gtk_tree_path_free (tempPath);			}	if (scroll) {		GdkRectangle rect = new GdkRectangle ();		OS.gtk_tree_view_get_cell_area (handle, path, 0, rect);		if (rect.y == 0 && rect.height == 0) {			OS.gtk_tree_view_scroll_to_cell (handle, path, 0, depth != 1, 0.5f, 0.5f);		}	}}