Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorYevgen Muntyan <muntyan@tamu.edu>2006-11-30 20:58:58 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-11-30 20:58:58 (GMT)
commit2dc20d298ea8064cf09bc5acc201a9df4e4cd4f0 (patch)
tree9308fb0aca3465335c0399cbdf4c1f45bd39e19b /shell/ev-window.c
parentb62cd9e5c51ac21bde4a328c52f463913d84a1dc (diff)
Make pdf compilation optional. See bug #38007.
2006-11-30 Yevgen Muntyan <muntyan@tamu.edu> * Makefile.am: * backend/Makefile.am: * backend/ev-document-factory.c: (ev_document_factory_add_filters): * configure.ac: * shell/ev-window.c: (build_comments_string): Make pdf compilation optional. See bug #38007.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 7442654..98d888f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -80,7 +80,9 @@
#include <gtk/gtkprintunixdialog.h>
#endif
+#ifdef ENABLE_PDF
#include <poppler.h>
+#endif
#include <glib/gstdio.h>
#include <glib/gi18n.h>
@@ -3088,6 +3090,7 @@ ev_window_dual_mode_changed_cb (EvView *view, GParamSpec *pspec, EvWindow *ev_wi
static char *
build_comments_string (void)
{
+#ifdef ENABLE_PDF
PopplerBackend backend;
const char *backend_name;
const char *version;
@@ -3109,6 +3112,9 @@ build_comments_string (void)
return g_strdup_printf (_("PostScript and PDF File Viewer.\n"
"Using poppler %s (%s)"),
version, backend_name);
+#else
+ return g_strdup_printf (_("Document Viewer."));
+#endif
}
static void