diff options
author | Andrea Weikert <elubie@gmx.net> | 2009-07-10 23:19:54 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2009-07-10 23:19:54 +0400 |
commit | ac11d522c8cad7eeabe07e643effbc776e933728 (patch) | |
tree | 32809399cfb65a5a4f002b883736932cb9f1baa9 /source/blender/editors/space_file/file_draw.c | |
parent | a74edc0caf2380bd92aa812835a1b5f922f2ca56 (diff) |
2.5 filebrowser
* bugfix: don't allow parent dir to go beyond root
* bugfix: only attempt to change directory if it exists
New (WIP) feature: autocomplete for directory
* works on TAB
* so far only one level (in current directory)
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index f8705fe63a4..f1f20a36b59 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -186,10 +186,11 @@ void file_draw_buttons(const bContext *C, ARegion *ar) /* Text input fields for directory and file. */ if (available_w > 0) { - uiDefBut(block, TEX, B_FS_DIRNAME, "", + but = uiDefBut(block, TEX, B_FS_DIRNAME, "", min_x, line1_y, line1_w, btn_h, params->dir, 0.0, (float)FILE_MAXFILE-1, 0, 0, "File path."); + uiButSetCompleteFunc(but, autocomplete_directory, NULL); uiDefBut(block, TEX, B_FS_FILENAME, "", min_x, line2_y, line2_w, btn_h, params->file, 0.0, (float)FILE_MAXFILE-1, 0, 0, |