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:
authorCampbell Barton <ideasman42@gmail.com>2014-04-30 01:48:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-30 02:11:47 +0400
commit48446870a8981c28ee4c695823d12fb4419e56eb (patch)
treea9b80b92be135af86d451b60a6b55a4e33bf0fb0 /source/blender/editors/space_file
parentcdaff060265ef81539d04f6ad1f16762dbbba288 (diff)
Code cleanup: remove redundant CTX calls
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 031dcddd89a..1d3013bd8b4 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1060,7 +1060,7 @@ static int file_smoothscroll_invoke(bContext *C, wmOperator *UNUSED(op), const w
}
}
- ED_region_tag_redraw(CTX_wm_region(C));
+ ED_region_tag_redraw(ar);
/* and restore context */
CTX_wm_region_set(C, oldar);
@@ -1147,7 +1147,7 @@ int file_directory_new_exec(bContext *C, wmOperator *op)
BLI_strncpy(sfile->params->renamefile, name, FILE_MAXFILE);
/* set timer to smoothly view newly generated file */
- sfile->smoothscroll_timer = WM_event_add_timer(CTX_wm_manager(C), CTX_wm_window(C), TIMER1, 1.0 / 1000.0); /* max 30 frs/sec */
+ sfile->smoothscroll_timer = WM_event_add_timer(wm, CTX_wm_window(C), TIMER1, 1.0 / 1000.0); /* max 30 frs/sec */
sfile->scroll_offset = 0;
/* reload dir to make sure we're seeing what's in the directory */