diff options
author | Ross 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) |
commit | 64153d3fe6c59d09f13131db5f376df550f966ac (patch) | |
tree | d51ed3f2d6c9ea3c55d4ca9994306a41f2bcd458 /libdocument | |
parent | c31fd74da4f237f783d2fc2ef7c614cf5db7ba28 (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')
-rw-r--r-- | libdocument/ev-file-helpers.c | 9 |
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) |