Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument/ev-file-helpers.c
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-05-04 15:17:37 (GMT)
committer Ross Burton <rburton@src.gnome.org>2007-05-04 15:17:37 (GMT)
commit64153d3fe6c59d09f13131db5f376df550f966ac (patch)
treed51ed3f2d6c9ea3c55d4ca9994306a41f2bcd458 /libdocument/ev-file-helpers.c
parentc31fd74da4f237f783d2fc2ef7c614cf5db7ba28 (diff)
Add --without-libgnome, check for libgnome and libgnomeui separately, and
2007-05-04 Ross Burton <ross@openedhand.com> * configure.ac: Add --without-libgnome, check for libgnome and libgnomeui separately, and add them to the symbols as required. * libdocument/ev-file-helpers.c: When building without libgnome, use g_get_user_config_dir instead of gnome_user_dir_get. * shell/ev-application.c: When building without libgnome, don't use session management. * shell/main.c: When building without libgnome, don't use GnomeProgram or initialise the authentication manager. This fixes #328842. svn path=/trunk/; revision=2436
Diffstat (limited to 'libdocument/ev-file-helpers.c')
-rw-r--r--libdocument/ev-file-helpers.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c
index d9b6448..5e83b3b 100644
--- a/libdocument/ev-file-helpers.c
+++ b/libdocument/ev-file-helpers.c
@@ -33,7 +33,10 @@
#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)