Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <william@reynish.com>2009-10-26 14:03:12 +0300
committerWilliam Reynish <william@reynish.com>2009-10-26 14:03:12 +0300
commit39d62a12d94d492186b22c1381eb78641a7ee1b7 (patch)
tree6f8015ee77c521a01c5b823ad2941045296ad392 /source/blender/editors/space_file
parent03d13ac9e8dd598750f206463dab8899ea5d5d0d (diff)
*Started to add theme editing in Preferences. Isn't visible in the UI yet.
*Moved some preferences around *Changed the file browser '..' icon (Thanks Elubie!)
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_draw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 2a1bb8b4add..a1f9a9fd250 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -290,8 +290,12 @@ static float shorten_string(char* string, float w, int flag)
static int get_file_icon(struct direntry *file)
{
- if (file->type & S_IFDIR)
+ if (file->type & S_IFDIR) {
+ if ( strcmp(file->relname, "..") == 0) {
+ return ICON_FILE_PARENT;
+ }
return ICON_FILE_FOLDER;
+ }
else if (file->flags & BLENDERFILE)
return ICON_FILE_BLEND;
else if (file->flags & IMAGEFILE)