diff options
| author | Ted Gould <ted@gould.cx> | 2007-06-27 06:20:33 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2007-06-27 06:20:33 +0000 |
| commit | 6094eb1ecb8b03d2c8a31026804d1df0939abcd3 (patch) | |
| tree | 96dc38180ebc776c28822f68de1b3f1261321808 /src/extension/effect.cpp | |
| parent | r15378@tres: ted | 2007-05-09 18:59:27 -0700 (diff) | |
| download | inkscape-6094eb1ecb8b03d2c8a31026804d1df0939abcd3.tar.gz inkscape-6094eb1ecb8b03d2c8a31026804d1df0939abcd3.zip | |
r15379@tres: ted | 2007-05-09 19:13:37 -0700
Moving the dialog one step out and adding a cancel event.
(bzr r3121)
Diffstat (limited to 'src/extension/effect.cpp')
| -rw-r--r-- | src/extension/effect.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index 10ac493b5..658861de7 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -15,6 +15,8 @@ #include "effect.h" #include "ui/view/view.h" +#include "gtkmm/messagedialog.h" + /* Inkscape::Extension::Effect */ namespace Inkscape { @@ -239,11 +241,22 @@ Effect::effect (Inkscape::UI::View::View * doc) set_state(Extension::STATE_LOADED); if (!loaded()) return; + gchar * dlgmessage = g_strdup_printf(_("The effect '%s' is working on your document. Please wait."), get_name()); + Gtk::MessageDialog working(dlgmessage, + false, // use markup + Gtk::MESSAGE_INFO, + Gtk::BUTTONS_CANCEL, + true); // modal + g_free(dlgmessage); + working.show(); + set_last_effect(this); imp->effect(this, doc); sp_document_done(doc->doc(), SP_VERB_NONE, _(this->get_name())); + working.hide(); + return; } |
