summaryrefslogtreecommitdiffstats
path: root/src/extension/execution-env.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2007-09-01 04:31:58 +0000
committergouldtj <gouldtj@users.sourceforge.net>2007-09-01 04:31:58 +0000
commitd6ca37229bb1049e6a900ba49249473625a6fcaa (patch)
tree11e8e97664379c3b23d3d08aa5c640c344ae1717 /src/extension/execution-env.cpp
parent(bzr r3637) (diff)
downloadinkscape-d6ca37229bb1049e6a900ba49249473625a6fcaa.tar.gz
inkscape-d6ca37229bb1049e6a900ba49249473625a6fcaa.zip
r16339@tres: ted | 2007-08-19 19:47:57 -0700
Live preview toggling is working. Pinning, not as much. But getting there. (bzr r3638)
Diffstat (limited to 'src/extension/execution-env.cpp')
-rw-r--r--src/extension/execution-env.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp
index b21d7a0f5..adcd2a3d7 100644
--- a/src/extension/execution-env.cpp
+++ b/src/extension/execution-env.cpp
@@ -36,6 +36,7 @@ ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk
_humanWait(false),
_canceled(false),
_prefsChanged(false),
+ _livePreview(true),
_doc(doc) {
SPDesktop *desktop = (SPDesktop *)_doc;
@@ -204,7 +205,7 @@ void
ExecutionEnv::run (void) {
while (!_finished) {
_canceled = false;
- if (_humanWait) {
+ if (_humanWait || !_livePreview) {
_mainloop->run();
} else {
_prefsChanged = false;
@@ -219,6 +220,18 @@ ExecutionEnv::run (void) {
return;
}
+void
+ExecutionEnv::livePreview (bool state) {
+ _mainloop->quit();
+ if (_livePreview && !state) {
+ _canceled = true;
+ }
+ if (!_livePreview && state) {
+ _humanWait = false;
+ }
+ _livePreview = state;
+ return;
+}
} } /* namespace Inkscape, Extension */