From e554673ceb63896ffb72a6e1bcaa96762b54ec07 Mon Sep 17 00:00:00 2001 From: gouldtj Date: Wed, 27 Jun 2007 06:20:19 +0000 Subject: [PATCH] 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. --- src/extension/implementation/script.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; } -- 2.30.2