From 879aa81743f165aabfe3c4f88b6394bc6c22308e Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Thu, 8 Jan 2009 18:47:16 +0000 Subject: 2.5 filebrowser cleanup of space initialisation fix for filebrowser opening with wrong parameters from window pupmenu after having been opened with F1. --- source/blender/editors/include/ED_fileselect.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/include/ED_fileselect.h') diff --git a/source/blender/editors/include/ED_fileselect.h b/source/blender/editors/include/ED_fileselect.h index c62990a69d9..c0efaab3786 100644 --- a/source/blender/editors/include/ED_fileselect.h +++ b/source/blender/editors/include/ED_fileselect.h @@ -28,6 +28,8 @@ #ifndef ED_FILES_H #define ED_FILES_H +struct SpaceFile; + typedef struct FileSelectParams { int type; /* the mode of the filebrowser, FILE_BLENDER, FILE_SPECIAL, FILE_MAIN or FILE_LOADLIB */ char title[24]; /* title, also used for the text of the execute button */ @@ -53,10 +55,12 @@ typedef struct FileSelectParams { /* XXX --- end unused -- */ } FileSelectParams; -FileSelectParams* ED_fileselect_get_params(const struct bContext *C); +FileSelectParams* ED_fileselect_get_params(struct SpaceFile *sfile); -short ED_fileselect_set_params(FileSelectParams *params, int type, const char *title, const char *path, +short ED_fileselect_set_params(struct SpaceFile *sfile, int type, const char *title, const char *path, short flag, short display, short filter); +void ED_fileselect_reset_params(struct SpaceFile *sfile); + #endif /* ED_FILES_H */ -- cgit v1.2.3