Merging r39717 through r39983 from trunk into soc-2011-tomato
[blender.git] / source / blender / editors / interface / interface_templates.c
index d2cee11c755db6874d0267501a4ad4769cdf8866..129f921e5fc05aca91bee40343c5d64f08aa769c 100644 (file)
@@ -2374,6 +2374,7 @@ void uiTemplateOperatorSearch(uiLayout *layout)
 #define B_STOPANIM             3
 #define B_STOPCOMPO            4
 #define B_STOPSEQ              5
+#define B_STOPCLIP             6
 
 static void do_running_jobs(bContext *C, void *UNUSED(arg), int event)
 {
@@ -2393,6 +2394,9 @@ static void do_running_jobs(bContext *C, void *UNUSED(arg), int event)
                case B_STOPSEQ:
                        WM_jobs_stop(CTX_wm_manager(C), CTX_wm_area(C), NULL);
                        break;
+               case B_STOPCLIP:
+                       WM_jobs_stop(CTX_wm_manager(C), CTX_wm_area(C), NULL);
+                       break;
        }
 }
 
@@ -2418,6 +2422,10 @@ void uiTemplateRunningJobs(uiLayout *layout, bContext *C)
                if(WM_jobs_test(wm, sa))
                        owner = sa;
                handle_event = B_STOPSEQ;
+       } else if(sa->spacetype==SPACE_CLIP) {
+               if(WM_jobs_test(wm, sa))
+                  owner = sa;
+               handle_event= B_STOPCLIP;
        } else {
                Scene *scene;
                /* another scene can be rendering too, for example via compositor */