diff options
author | Ton Roosendaal <ton@blender.org> | 2009-02-18 16:29:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-02-18 16:29:54 +0300 |
commit | 1090b0c598712a8375e6189447b461ddd3d781b6 (patch) | |
tree | cde5a33c17d262cdf5dd7b7a88c6f3021197686f /source/blender/windowmanager/intern/wm_jobs.c | |
parent | 915e989f9d60d4523563f14b71df8c7f6d5e812e (diff) |
2.5
Several things in one commit; could not split this up easily,
one job invoked another, and so on. :)
- Added pulldowns for save/load .blend file in top bar.
- To enable "Save" without further popups (save over)
I've added a signaling function in window header to
indicate a succesful save.
- On any undo push it now signals 'file changed'. This
goes by notifiers nicely, but now registers only the
undopushes, which is quite unreliable. "Changed" state
shows in header as "Blender*" and for OSX with the
standard close button black dot.
- Made screencast show a button in top bar indicating such,
and allowing quit. No hotkey for quit yet... but ESC will
keep casting now.
- Fixed new BLF_init(), which should be in WM_init() and not
on any .B.blend read.
- Fixed CTRL+F3 "Save Screenshot", which was still using old
fileselect code.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_jobs.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_jobs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_jobs.c b/source/blender/windowmanager/intern/wm_jobs.c index 40a72034d26..31c3a803246 100644 --- a/source/blender/windowmanager/intern/wm_jobs.c +++ b/source/blender/windowmanager/intern/wm_jobs.c @@ -249,6 +249,17 @@ void WM_jobs_stop_all(wmWindowManager *wm) BLI_freelistN(&wm->jobs); } +/* stops job(s) from this owner */ +void WM_jobs_stop(wmWindowManager *wm, void *owner) +{ + wmJob *steve; + + for(steve= wm->jobs.first; steve; steve= steve->next) + if(steve->owner==owner) + if(steve->running) + steve->stop= 1; +} + /* hardcoded to event TIMERJOBS */ static int wm_jobs_timer(bContext *C, wmOperator *op, wmEvent *evt) { |