summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8462bb8)
raw | patch | inline | side by side (parent: 8462bb8)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Sat, 1 Sep 2007 04:33:12 +0000 (04:33 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Sat, 1 Sep 2007 04:33:12 +0000 (04:33 +0000) |
This is a good stopping point. I think things are working... more
testing.
testing.
src/extension/effect.cpp | patch | blob | history | |
src/extension/execution-env.cpp | patch | blob | history | |
src/extension/execution-env.h | patch | blob | history |
index aa702a1aeba7f0e322e5c16208d466dd35ea8d5f..fc8715248edc09f14cac2a4a8fbdbda2d0da75b2 100644 (file)
--- a/src/extension/effect.cpp
+++ b/src/extension/effect.cpp
void
Effect::effect (Inkscape::UI::View::View * doc)
{
+ printf("Execute effect\n");
if (!loaded())
set_state(Extension::STATE_LOADED);
if (!loaded()) return;
index be3abcd410a362635c2c39bac33682a6341a80a1..fcf60cdcbb3f6d8a61dff054ac3a675b3186fc4b 100644 (file)
}
ExecutionEnv::~ExecutionEnv (void) {
- if (_visibleDialog != NULL) {
+ _dialogsig.disconnect();
+ if (_visibleDialog != NULL && !_shutdown) {
delete _visibleDialog;
}
return;
_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;
void
ExecutionEnv::createWorkingDialog (void) {
+ printf("Create working dialog\n");
if (_visibleDialog != NULL) {
delete _visibleDialog;
}
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();
reselect();
}
}
+ printf("Execution environment done running\n");
return;
}
_visibleDialog = NULL;
}
+ return;
+}
+
} } /* namespace Inkscape, Extension */
index e46aafc074496a47a3a00cb3dc0672d1600b345b..a3938be3d3c608742ae726cd932b715c14fa733b 100644 (file)
Glib::RefPtr<Glib::MainLoop> _mainloop;
Inkscape::UI::View::View * _doc;
std::list<Glib::ustring> _selected;
+ sigc::connection _dialogsig;
public:
Effect * _effect;