diff options
| author | Kees Cook <kees@outflux.net> | 2006-05-27 16:28:49 +0000 |
|---|---|---|
| committer | keescook <keescook@users.sourceforge.net> | 2006-05-27 16:28:49 +0000 |
| commit | 52995ed510055c75f7142796d28210826934a724 (patch) | |
| tree | e612c13aac798726ed4ae3199c415017d3a8a4e1 /src/extension/implementation/script.cpp | |
| parent | updated translations (es, cs, fr) (diff) | |
| download | inkscape-52995ed510055c75f7142796d28210826934a724.tar.gz inkscape-52995ed510055c75f7142796d28210826934a724.zip | |
Fixes bug #1495310, allowing parameters for output extensions.
(bzr r1027)
Diffstat (limited to 'src/extension/implementation/script.cpp')
| -rw-r--r-- | src/extension/implementation/script.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index bd9b085e2..e316822fc 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -31,6 +31,7 @@ #include "prefs-utils.h" #include "../system.h" #include "extension/effect.h" +#include "extension/output.h" #include "extension/db.h" #include "script.h" @@ -366,8 +367,7 @@ Script::prefs_input(Inkscape::Extension::Input *module, gchar const *filename) Gtk::Widget * Script::prefs_output(Inkscape::Extension::Output *module) { - /*return module->autogui();*/ - return NULL; + return module->autogui(NULL, NULL); } /** @@ -524,7 +524,12 @@ Script::save(Inkscape::Extension::Output *module, SPDocument *doc, gchar const * gchar *local_filename = g_filename_from_utf8( filename, -1, &bytesRead, &bytesWritten, &error); - execute(command, tempfilename_in, local_filename); + Glib::ustring local_command(command); + Glib::ustring * paramString = module->paramString(); + local_command += *paramString; + delete paramString; + + execute(local_command.c_str(), tempfilename_in, local_filename); g_free(local_filename); |
