summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 75d4049)
raw | patch | inline | side by side (parent: 75d4049)
author | ishmal <ishmal@users.sourceforge.net> | |
Wed, 21 Mar 2007 23:54:26 +0000 (23:54 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Wed, 21 Mar 2007 23:54:26 +0000 (23:54 +0000) |
src/ui/dialog/filedialog.cpp | patch | blob | history |
index c72d8cb29ca04dd9d4e4b4b751fad2427c7d7196..25390d56fa20e6e8f0571be763d240bdc94f48ea 100644 (file)
void dump_ustr( const Glib::ustring& ustr );
#endif
-
+extern int errno;
namespace Inkscape
g_message("fname:%s", fileName.c_str());
if (Glib::file_test(fileName, Glib::FILE_TEST_IS_DIR)) {
- g_message("dir");
showNoPreview();
return false;
}
Glib::ustring fileNameUtf8 = Glib::filename_to_utf8(fileName);
gchar *fName = (gchar *)fileNameUtf8.c_str();
struct stat info;
- if (stat(fName, &info))
+ if (g_stat(fName, &info))
{
- g_message("SVGPreview::set() : %s", strerror(errno));
+ g_warning("SVGPreview::set() : %s : %s",
+ fName, strerror(errno));
return FALSE;
}
long fileLen = info.st_size;
return FALSE;
}
}
-
+
Glib::ustring svg = ".svg";
Glib::ustring svgz = ".svgz";