summaryrefslogtreecommitdiffstats
path: root/src/extension/execution-env.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-01-28 21:15:43 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-01-28 21:15:43 +0000
commit9fe3b05f33eb20b690340339c871739ded796420 (patch)
tree280f24d0f36749f46895d361ec7953dabb688ede /src/extension/execution-env.cpp
parentsince imagemagic effects cannot be cancelled midway, trying to do so often cr... (diff)
downloadinkscape-9fe3b05f33eb20b690340339c871739ded796420.tar.gz
inkscape-9fe3b05f33eb20b690340339c871739ded796420.zip
show waiting cursor while ExecutionEnv is working
(bzr r7199)
Diffstat (limited to 'src/extension/execution-env.cpp')
-rw-r--r--src/extension/execution-env.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp
index 539e0786a..4a13890d7 100644
--- a/src/extension/execution-env.cpp
+++ b/src/extension/execution-env.cpp
@@ -154,6 +154,8 @@ ExecutionEnv::workingCanceled( const int /*resp*/) {
void
ExecutionEnv::cancel (void) {
+ SPDesktop *desktop = (SPDesktop *)_doc;
+ desktop->clearWaitingCursor();
_effect->get_imp()->cancelProcessing();
return;
}
@@ -203,7 +205,10 @@ ExecutionEnv::run (void) {
if (_show_working) {
createWorkingDialog();
}
+ SPDesktop *desktop = (SPDesktop *)_doc;
+ desktop->setWaitingCursor();
_effect->get_imp()->effect(_effect, _doc, _docCache);
+ desktop->clearWaitingCursor();
_state = ExecutionEnv::COMPLETE;
// _runComplete.signal();
return;