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:
-rw-r--r--source/blender/editors/space_file/Makefile2
-rw-r--r--source/blender/editors/space_file/SConscript2
-rw-r--r--source/blender/editors/space_file/file_draw.c4
-rw-r--r--source/blender/editors/space_file/file_ops.c8
-rw-r--r--source/blender/editors/space_file/filesel.c2
5 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/editors/space_file/Makefile b/source/blender/editors/space_file/Makefile
index 5376f01325d..698effb0022 100644
--- a/source/blender/editors/space_file/Makefile
+++ b/source/blender/editors/space_file/Makefile
@@ -37,6 +37,7 @@ CFLAGS += $(LEVEL_1_C_WARNINGS)
CPPFLAGS += -I$(NAN_GLEW)/include
CPPFLAGS += -I$(OPENGL_HEADERS)
+CPPFLAGS += -I$(NAN_BMFONT)/include
# not very neat....
CPPFLAGS += -I../../windowmanager
@@ -44,6 +45,7 @@ CPPFLAGS += -I../../blenloader
CPPFLAGS += -I../../blenkernel
CPPFLAGS += -I../../blenlib
CPPFLAGS += -I../../makesdna
+CPPFLAGS += -I../../makesrna
CPPFLAGS += -I../../imbuf
CPPFLAGS += -I../../python
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
diff --git a/source/blender/editors/space_file/SConscript b/source/blender/editors/space_file/SConscript
index d8693fc5d94..99f101fa586 100644
--- a/source/blender/editors/space_file/SConscript
+++ b/source/blender/editors/space_file/SConscript
@@ -4,7 +4,7 @@ Import ('env')
sources = env.Glob('*.c')
incs = '../include ../../blenlib ../../blenkernel ../../makesdna ../../imbuf'
-incs += ' ../../blenloader'
+incs += ' ../../blenloader #intern/bmfont ../../makesrna'
incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
env.BlenderLib ( 'bf_editors_space_file', sources, Split(incs), [], libtype=['core'], priority=[115] )
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 04b126bf858..3cb659d5f41 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -26,6 +26,8 @@
* ***** END GPL LICENSE BLOCK *****
*/
+#include <string.h>
+
#include "BLI_blenlib.h"
#include "BLI_storage_types.h"
#ifdef WIN32
@@ -273,7 +275,7 @@ void file_calc_previews(const bContext *C, ARegion *ar)
View2D *v2d= &ar->v2d;
int width=0, height=0;
int rows, columns;
- int linestep = U.fontsize*3/2;
+// int linestep = U.fontsize*3/2;
if (params->display) {
sfile->prv_w = 96;
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index d2f2b3d5919..4ca34f062ad 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -45,6 +45,8 @@
#include "WM_api.h"
#include "WM_types.h"
+#include "UI_view2d.h"
+
#include "file_intern.h"
#include "filelist.h"
#include "fsmenu.h"
@@ -63,7 +65,7 @@ static void set_active_file_thumbs(SpaceFile *sfile, FileSelectParams* params, s
{
float x,y;
int active_file = -1;
- int stridex, stridey;
+// int stridex, stridey;
struct direntry* file;
int offsetx, offsety;
int numfiles = filelist_numfiles(params->files);
@@ -192,7 +194,7 @@ static void mouse_select_bookmark(SpaceFile* sfile, ARegion* ar, short *mval)
{
if(mval[0]>ar->v2d.mask.xmin && mval[0]<ar->v2d.mask.xmax
&& mval[1]>ar->v2d.mask.ymin && mval[1]<ar->v2d.mask.ymax) {
- int nentries = fsmenu_get_nentries();
+ //int nentries = fsmenu_get_nentries();
char *selected;
printf("selecting...\n");
set_active_bookmark(sfile, sfile->params, ar, mval[1]);
@@ -212,7 +214,7 @@ static void mouse_select_bookmark(SpaceFile* sfile, ARegion* ar, short *mval)
static int file_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
{
- ScrArea *sa= CTX_wm_area(C);
+// ScrArea *sa= CTX_wm_area(C);
ARegion *ar= CTX_wm_region(C);
SpaceFile *sfile= (SpaceFile*)CTX_wm_space_data(C);
short mval[2];
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index 9e991fc861e..fade08992c9 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -92,7 +92,7 @@ FileSelectParams* ED_fileselect_get_params(const struct bContext *C)
short ED_fileselect_set_params(const struct bContext *C, int type, const char *title, const char *path,
short flag, short display, short filter)
{
- char group[32], name[FILE_MAX], temp[FILE_MAX], dir[FILE_MAX], file[FILE_MAX];
+ char name[FILE_MAX], dir[FILE_MAX], file[FILE_MAX];
SpaceLink *sl= CTX_wm_space_data(C);
SpaceFile *sfile;
FileSelectParams *params;