diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2019-12-07 00:10:30 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2019-12-07 00:10:30 +0300 |
commit | 7c2217cd126a97df9b1c305f79a605f25c06a229 (patch) | |
tree | 4033f2c2e3ecc35bd82c610e408762dac722afe0 /source/blender/editors/space_file/file_ops.c | |
parent | a05b79e96d79757d5ad3fca95a766f4134b9368e (diff) |
UI: File Browser Volumes and System Lists Icons
Allows each File Browser list item in Volumes and System to use individual icons.
Differential Revision: https://developer.blender.org/D5802
Reviewed by Julian Eisel
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index b26769f2118..77e6266b830 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -45,6 +45,8 @@ #include "ED_select_utils.h" #include "UI_interface.h" +#include "UI_interface_icons.h" +#include "UI_resources.h" #include "MEM_guardedalloc.h" @@ -952,7 +954,8 @@ static int bookmark_add_exec(bContext *C, wmOperator *UNUSED(op)) if (params->dir[0] != '\0') { char name[FILE_MAX]; - fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, params->dir, NULL, FS_INSERT_SAVE); + fsmenu_insert_entry( + fsmenu, FS_CATEGORY_BOOKMARKS, params->dir, NULL, ICON_FILE_FOLDER, FS_INSERT_SAVE); BLI_make_file_string( "/", name, BKE_appdir_folder_id_create(BLENDER_USER_CONFIG, NULL), BLENDER_BOOKMARK_FILE); fsmenu_write_file(fsmenu, name); @@ -1572,6 +1575,7 @@ int file_exec(bContext *C, wmOperator *exec_op) FS_CATEGORY_RECENT, sfile->params->dir, NULL, + ICON_FILE_FOLDER, FS_INSERT_SAVE | FS_INSERT_FIRST); } |