index ae3c243ce968b7a449a961f132b45bf6f45a7088..5975d6d24934d678f8aeaaf500e6e1a97a547fc5 100644 (file)
#include "selection.h"
#include "sp-namedview.h"
#include "io/sys.h"
-#include "registrytool.h"
#include "prefs-utils.h"
#include "../system.h"
#include "extension/effect.h"
#ifdef WIN32
#include <windows.h>
#include <sys/stat.h>
+#include "registrytool.h"
#endif
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;
}
}
*/
Gtk::Widget *
Script::prefs_input(Inkscape::Extension::Input *module,
- const Glib::ustring &filename)
+ const gchar *filename)
{
/*return module->autogui(); */
return NULL;
*/
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
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);
child = child->next()) {
if (!strcmp("sodipodi:namedview", child->name()))
continue;
- if (!strcmp("svg:defs", child->name()))
- continue;
delete_list.push_back(child);
}
for (unsigned int i = 0; i < delete_list.size(); i++)
child = child->next()) {
if (!strcmp("sodipodi:namedview", child->name()))
continue;
- if (!strcmp("svg:defs", child->name()))
- continue;
oldroot->appendChild(child->duplicate());
}
} else if (errno == ECHILD) {
perror("Extension::Script: Could not obtain child status for pclose\n");
} else {
- if (errorFile != NULL) {
+ if (!errorFile.empty()) {
checkStderr(errorFile, Gtk::MESSAGE_ERROR,
_("Inkscape has received an error from the script that it called. "
"The text returned with the error is included below. "
Glib::ustring popen_mode;
if ( (mode_p & mode_read) != 0 )
- popen_mode_cur.append("r");
+ popen_mode.append("r");
if ( (mode_p & mode_write) != 0 )
- popen_mode_cur.append("w");
+ popen_mode.append("w");
// Get the commandline to be run
Glib::ustring pipeStr = command;