summaryrefslogtreecommitdiffstats
path: root/src/extension/execution-env.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2007-09-01 04:33:12 +0000
committergouldtj <gouldtj@users.sourceforge.net>2007-09-01 04:33:12 +0000
commitd9943f5475dde49a4a95859c197d6d795324a331 (patch)
tree2d622be33da8723d929d081c95ef750c62e39ee2 /src/extension/execution-env.cpp
parentr16340@tres: ted | 2007-08-20 19:02:50 -0700 (diff)
downloadinkscape-d9943f5475dde49a4a95859c197d6d795324a331.tar.gz
inkscape-d9943f5475dde49a4a95859c197d6d795324a331.zip
r16395@tres: ted | 2007-08-27 19:41:32 -0700
This is a good stopping point. I think things are working... more testing. (bzr r3640)
Diffstat (limited to 'src/extension/execution-env.cpp')
-rw-r--r--src/extension/execution-env.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp
index be3abcd41..fcf60cdcb 100644
--- a/src/extension/execution-env.cpp
+++ b/src/extension/execution-env.cpp
@@ -71,7 +71,8 @@ ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk
}
ExecutionEnv::~ExecutionEnv (void) {
- if (_visibleDialog != NULL) {
+ _dialogsig.disconnect();
+ if (_visibleDialog != NULL && !_shutdown) {
delete _visibleDialog;
}
return;
@@ -101,6 +102,7 @@ ExecutionEnv::createPrefsDialog (Gtk::Widget * controls) {
_visibleDialog = new PrefDialog(_effect->get_name(), _effect->get_help(), controls, this, _effect);
_visibleDialog->signal_response().connect(sigc::mem_fun(this, &ExecutionEnv::preferencesResponse));
_visibleDialog->show();
+ _dialogsig = _visibleDialog->signal_response().connect(sigc::mem_fun(this, &ExecutionEnv::preferencesResponse));
_prefsVisible = true;
return;
@@ -108,6 +110,7 @@ ExecutionEnv::createPrefsDialog (Gtk::Widget * controls) {
void
ExecutionEnv::createWorkingDialog (void) {
+ printf("Create working dialog\n");
if (_visibleDialog != NULL) {
delete _visibleDialog;
}
@@ -118,7 +121,7 @@ ExecutionEnv::createWorkingDialog (void) {
Gtk::MESSAGE_INFO,
Gtk::BUTTONS_CANCEL,
true); // modal
- _visibleDialog->signal_response().connect(sigc::mem_fun(this, &ExecutionEnv::workingCanceled));
+ _dialogsig = _visibleDialog->signal_response().connect(sigc::mem_fun(this, &ExecutionEnv::workingCanceled));
g_free(dlgmessage);
_visibleDialog->show();
@@ -222,6 +225,7 @@ ExecutionEnv::run (void) {
reselect();
}
}
+ printf("Execution environment done running\n");
return;
}
@@ -247,6 +251,9 @@ ExecutionEnv::shutdown (void) {
_visibleDialog = NULL;
}
+ return;
+}
+
} } /* namespace Inkscape, Extension */