summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation/script.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2007-06-27 06:20:19 +0000
committergouldtj <gouldtj@users.sourceforge.net>2007-06-27 06:20:19 +0000
commit992817ae205658c88ca6a13ac0839c32abeef9e0 (patch)
treeb85e7e4922605491404944c4518cda274a752bf5 /src/extension/implementation/script.cpp
parentr15377@tres: ted | 2007-05-08 22:03:14 -0700 (diff)
downloadinkscape-992817ae205658c88ca6a13ac0839c32abeef9e0.tar.gz
inkscape-992817ae205658c88ca6a13ac0839c32abeef9e0.zip
r15378@tres: ted | 2007-05-09 18:59:27 -0700
Wow, working pretty well now. More updates and let's make this a little bit cooler. (bzr r3120)
Diffstat (limited to 'src/extension/implementation/script.cpp')
-rw-r--r--src/extension/implementation/script.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
index 8e813237b..2e0dd004e 100644
--- a/src/extension/implementation/script.cpp
+++ b/src/extension/implementation/script.cpp
@@ -789,6 +789,17 @@ Script::effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *do
return;
}
+ gchar * dlgmessage = g_strdup_printf(_("The effect '%s' is working on your document. Please wait."), module->get_name());
+
+ Gtk::MessageDialog working(dlgmessage,
+ false, // use markup
+ Gtk::MESSAGE_INFO,
+ Gtk::BUTTONS_CANCEL,
+ true); // modal
+ g_free(dlgmessage);
+ working.show();
+
+
gchar *tmpname;
// FIXME: process the GError instead of passing NULL
gint tempfd_in = g_file_open_tmp("ink_ext_XXXXXX", &tmpname, NULL);
@@ -878,6 +889,9 @@ Script::effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *do
mydoc->release();
sp_namedview_update_layers_from_document(desktop);
}
+
+ working.hide();
+ return;
}