summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdib Taraben <theadib@gmail.com>2007-08-08 08:33:50 +0000
committertheadib <theadib@users.sourceforge.net>2007-08-08 08:33:50 +0000
commit28ba6309b72e75172d5623cf4fefae44a437848b (patch)
tree011693bd22db51a4e996cf64d6c41101c0ea6b48 /src
parentremove extra Shape:: on new function definition in Shape class. (diff)
downloadinkscape-28ba6309b72e75172d5623cf4fefae44a437848b.tar.gz
inkscape-28ba6309b72e75172d5623cf4fefae44a437848b.zip
prevent file_save_remote to break build on system without GNOME_VFS
(bzr r3426)
Diffstat (limited to 'src')
-rw-r--r--src/file.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp
index d5f0c6f6e..92df59065 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -566,7 +566,6 @@ file_save_local(Gtk::Window &parentWindow, SPDocument *doc, const Glib::ustring
-#ifdef WITH_GNOME_VFS
/*
* Used only for remote saving using VFS and a specific uri. Gets the file at the /tmp.
@@ -575,6 +574,7 @@ bool
file_save_remote(SPDocument *doc, const Glib::ustring &uri,
Inkscape::Extension::Extension *key, bool saveas, bool official)
{
+#ifdef WITH_GNOME_VFS
#define BUF_SIZE 8192
gnome_vfs_init();
@@ -652,9 +652,13 @@ file_save_remote(SPDocument *doc, const Glib::ustring &uri,
}
return true;
-}
+#else
+ // in case we do not have GNOME_VFS
+ return false;
#endif
+}
+
/**
* Display a SaveAs dialog. Save the document if OK pressed.