]> www.fi.muni.cz Git - evince.git/blobdiff - backend/ev-attachment.c
Check for NL_MEASUREMENT. Fixes bug #376469. Thanks to Damien Carbery
[evince.git] / backend / ev-attachment.c
index 63619afa61dc0f2772f2d645b72dae9a8a4c24f2..7e7ca127ea0b35483179d555e11253c852db3b9e 100644 (file)
@@ -22,6 +22,7 @@
 #include <libgnomevfs/gnome-vfs.h>
 #include <libgnomevfs/gnome-vfs-mime-handlers.h>
 #include <libgnomevfs/gnome-vfs-mime-utils.h>
+#include "ev-file-helpers.h"
 #include "ev-attachment.h"
 
 enum
@@ -389,7 +390,7 @@ ev_attachment_open (EvAttachment *attachment,
        } else {
                gchar *uri, *filename;
                
-               filename = g_build_filename (g_get_tmp_dir (), attachment->priv->name, NULL);
+               filename = g_build_filename (ev_tmp_dir (), attachment->priv->name, NULL);
                uri = g_filename_to_uri (filename, NULL, NULL);
 
                if (ev_attachment_save (attachment, uri, error)) {