diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/Makefile.am | 1 | ||||
-rw-r--r-- | backend/ev-attachment.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/backend/Makefile.am b/backend/Makefile.am index f92c607..f7ae5ec 100644 --- a/backend/Makefile.am +++ b/backend/Makefile.am @@ -1,6 +1,7 @@ INCLUDES= \ -DEVINCE_UIDIR=\"$(pkgdatadir)\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ + -I$(top_srcdir)/lib \ -I$(top_srcdir)/pdf \ -I$(top_srcdir)/pixbuf \ -I$(top_srcdir)/tiff \ diff --git a/backend/ev-attachment.c b/backend/ev-attachment.c index 63619af..7e7ca12 100644 --- a/backend/ev-attachment.c +++ b/backend/ev-attachment.c @@ -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)) { |