void tree_chdir (WTree *tree, const char *dir) { tree_entry *current; current = tree_store_whereis (dir); if (current){ tree->selected_ptr = current; check_focus (tree); } }
void tree_chdir (WTree * tree, const vfs_path_t * dir) { tree_entry *current; current = tree_store_whereis (dir); if (current != NULL) { tree->selected_ptr = current; tree_check_focus (tree); } }
void tree_chdir (WTree * tree, const char *dir) { vfs_path_t *vpath; tree_entry *current; vpath = vfs_path_from_str (dir); current = tree_store_whereis (vpath); if (current != NULL) { tree->selected_ptr = current; tree_check_focus (tree); } vfs_path_free (vpath); }