Code

revert interface change
authorishmal <ishmal@users.sourceforge.net>
Thu, 1 Jun 2006 06:27:04 +0000 (06:27 +0000)
committerishmal <ishmal@users.sourceforge.net>
Thu, 1 Jun 2006 06:27:04 +0000 (06:27 +0000)
src/extension/implementation/script.cpp
src/extension/implementation/script.h

index 11544463dd11021e10ad0b3921d1df5c6f8f045a..77e1c7544edc7e4ea241d5c8515eea3525dafb9e 100644 (file)
@@ -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);
index 98c4a9fef39acd7fcea501a0662f4d8197ce9897..dd8a0e6ee6e7e0fa9a024023501a792e84656686 100644 (file)
@@ -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);
     /**
      *
      */