From e860c41c65e6dc8b943a201cf5282763f1bb015a Mon Sep 17 00:00:00 2001 From: ishmal Date: Thu, 1 Jun 2006 06:27:04 +0000 Subject: [PATCH] revert interface change --- src/extension/implementation/script.cpp | 12 ++++++++---- src/extension/implementation/script.h | 7 +++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 11544463d..77e1c7544 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -127,7 +127,7 @@ resolveInterpreterExecutable(const Glib::ustring &interpNameArg) if (stat(interpPath .c_str(), &finfo) ==0) { g_message("Found local interpreter, '%s', Size: %d", interpPath .c_str(), - finfo.st_size); + (int)finfo.st_size); return interpPath; } } @@ -441,7 +441,7 @@ Script::check(Inkscape::Extension::Extension *module) */ Gtk::Widget * Script::prefs_input(Inkscape::Extension::Input *module, - const Glib::ustring &filename) + const gchar *filename) { /*return module->autogui(); */ return NULL; @@ -514,9 +514,11 @@ Script::prefs_effect(Inkscape::Extension::Effect *module, */ SPDocument * Script::open(Inkscape::Extension::Input *module, - const Glib::ustring &filename) + const gchar *filenameArg) { + Glib::ustring filename = filenameArg; + gchar *tmpname; // FIXME: process the GError instead of passing NULL @@ -604,9 +606,11 @@ Script::open(Inkscape::Extension::Input *module, void Script::save(Inkscape::Extension::Output *module, SPDocument *doc, - const Glib::ustring &filename) + const gchar *filenameArg) { + Glib::ustring filename = filenameArg; + gchar *tmpname; // FIXME: process the GError instead of passing NULL gint tempfd = g_file_open_tmp("ink_ext_XXXXXX", &tmpname, NULL); diff --git a/src/extension/implementation/script.h b/src/extension/implementation/script.h index 98c4a9fef..dd8a0e6ee 100644 --- a/src/extension/implementation/script.h +++ b/src/extension/implementation/script.h @@ -66,14 +66,13 @@ public: * */ virtual Gtk::Widget *prefs_input(Inkscape::Extension::Input *module, - const Glib::ustring &filename); - + gchar const *filename); /** * */ virtual SPDocument *open(Inkscape::Extension::Input *module, - const Glib::ustring &filename); + gchar const *filename); /** * @@ -85,7 +84,7 @@ public: */ virtual void save(Inkscape::Extension::Output *module, SPDocument *doc, - const Glib::ustring &filename); + gchar const *filename); /** * */ -- 2.30.2