diff options
| author | Albin Sunnanbo <albin@sunnanbo.com> | 2008-03-13 14:24:00 +0000 |
|---|---|---|
| committer | albinsunnanbo <albinsunnanbo@users.sourceforge.net> | 2008-03-13 14:24:00 +0000 |
| commit | 69dc47d89f6605a2d9bb7e424766c38ffcbd3e93 (patch) | |
| tree | de9d256195b8df9b945c9f43272a61812cfc08e0 /src/ui | |
| parent | BUG 168896, fix init.cpp.patch Native windows dialogs breaks some extensions ... (diff) | |
| download | inkscape-69dc47d89f6605a2d9bb7e424766c38ffcbd3e93.tar.gz inkscape-69dc47d89f6605a2d9bb7e424766c38ffcbd3e93.zip | |
BUG 168896, fix BUG_168896_refactor_tempfile.patch problems with Vista tempfiles breaks some extensions (including Save as XAML)
(bzr r5082)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/ocaldialogs.cpp | 3 | ||||
| -rw-r--r-- | src/ui/dialog/print.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/ocaldialogs.cpp b/src/ui/dialog/ocaldialogs.cpp index e9ef63443..19b739061 100644 --- a/src/ui/dialog/ocaldialogs.cpp +++ b/src/ui/dialog/ocaldialogs.cpp @@ -24,6 +24,7 @@ #include "interface.h" #include "gc-core.h" #include <dialogs/dialog-events.h> +#include "io/sys.h" namespace Inkscape { @@ -285,7 +286,7 @@ void FileListViewText::on_cursor_changed() // create file path const std::string tmptemplate = "ocal-"; std::string tmpname; - int fd = Glib::file_open_tmp(tmpname, tmptemplate); + int fd = Inkscape::IO::file_open_tmp(tmpname, tmptemplate); if (fd<0) { g_warning("Error creating temp file"); return; diff --git a/src/ui/dialog/print.cpp b/src/ui/dialog/print.cpp index 3deb4204a..52ff07ee6 100644 --- a/src/ui/dialog/print.cpp +++ b/src/ui/dialog/print.cpp @@ -26,6 +26,7 @@ #include "unit-constants.h" #include "helper/png-write.h" #include "svg/svg-color.h" +#include "io/sys.h" static void @@ -46,7 +47,7 @@ draw_page (GtkPrintOperation */*operation*/, std::string tmp_base = "inkscape-print-png-XXXXXX"; int tmp_fd; - if ( (tmp_fd = Glib::file_open_tmp (tmp_png, tmp_base)) >= 0) { + if ( (tmp_fd = Inkscape::IO::file_open_tmp (tmp_png, tmp_base)) >= 0) { close(tmp_fd); guint32 bgcolor = 0x00000000; |
