From f512b9915196be7533eb6633504e2af73423bc15 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sat, 1 Sep 2007 04:32:10 +0000 Subject: r16340@tres: ted | 2007-08-20 19:02:50 -0700 Pinned is still not working, somewhat usable state. Worth checking in. (bzr r3639) --- src/extension/execution-env.cpp | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'src/extension/execution-env.cpp') diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp index adcd2a3d7..be3abcd41 100644 --- a/src/extension/execution-env.cpp +++ b/src/extension/execution-env.cpp @@ -28,7 +28,7 @@ namespace Inkscape { namespace Extension { -ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk::Widget * controls) : +ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk::Widget * controls, Gtk::Dialog * prefDialog) : _effect(effect), _visibleDialog(NULL), _prefsVisible(false), @@ -56,10 +56,15 @@ ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk _mainloop = Glib::MainLoop::create(false); - if (controls != NULL) { - createPrefsDialog(controls); + if (prefDialog == NULL) { + if (controls != NULL) { + createPrefsDialog(controls); + } else { + createWorkingDialog(); + } } else { - createWorkingDialog(); + _visibleDialog = prefDialog; + _prefsVisible = true; } return; @@ -224,7 +229,7 @@ void ExecutionEnv::livePreview (bool state) { _mainloop->quit(); if (_livePreview && !state) { - _canceled = true; + documentCancel(); } if (!_livePreview && state) { _humanWait = false; @@ -233,6 +238,14 @@ ExecutionEnv::livePreview (bool state) { return; } +void +ExecutionEnv::shutdown (void) { + _mainloop->quit(); + processingCancel(); + documentCancel(); + _finished = true; + _visibleDialog = NULL; +} } } /* namespace Inkscape, Extension */ -- cgit v1.2.3