]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-file-helpers.c
Add --without-libgnome, check for libgnome and libgnomeui separately, and
[evince.git] / libdocument / ev-file-helpers.c
index d9b6448418b1739e33196265d76a37f433e5cb89..5e83b3bc957c1376ca305f906e873848a9b5a29d 100644 (file)
 #include <libgnomevfs/gnome-vfs-utils.h>
 #include <libgnomevfs/gnome-vfs-ops.h>
 #include <libgnomevfs/gnome-vfs-xfer.h>
+
+#if WITH_GNOME
 #include <libgnome/gnome-init.h>
+#endif
 
 #include "ev-file-helpers.h"
 
@@ -63,9 +66,15 @@ ev_dot_dir (void)
        if (dot_dir == NULL) {
                gboolean exists;
 
+#if WITH_GNOME
                dot_dir = g_build_filename (gnome_user_dir_get (),
                                            "evince",
                                            NULL);
+#else
+               dot_dir = g_build_filename (g_get_user_config_dir (),
+                                           "evince",
+                                           NULL);
+#endif
 
                exists = ensure_dir_exists (dot_dir);
                if (!exists)