diff options
author | monsta <[email protected]> | 2016-06-01 11:20:57 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-06-01 11:27:13 +0300 |
commit | 415e00e359d2114a215289b4cf4c88368f232ba7 (patch) | |
tree | c07cfe65e6baff3a124b96a96641b483fde4e234 /backend/dvi/dvi-document.c | |
parent | edae80f9c5b8082b86e1cbd60cfee9c79d7e23ba (diff) | |
download | atril-415e00e359d2114a215289b4cf4c88368f232ba7.tar.bz2 atril-415e00e359d2114a215289b4cf4c88368f232ba7.tar.xz |
backend: drop some win32-specific stuff
Diffstat (limited to 'backend/dvi/dvi-document.c')
-rw-r--r-- | backend/dvi/dvi-document.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c index 304283d7..6ffa2514 100644 --- a/backend/dvi/dvi-document.c +++ b/backend/dvi/dvi-document.c @@ -20,7 +20,6 @@ #include "config.h" #include "dvi-document.h" -#include "texmfcnf.h" #include "ev-document-thumbnails.h" #include "ev-document-misc.h" #include "ev-file-exporter.h" @@ -33,12 +32,7 @@ #include <glib/gi18n-lib.h> #include <ctype.h> -#ifdef G_OS_WIN32 -# define WIFEXITED(x) ((x) != 3) -# define WEXITSTATUS(x) (x) -#else -# include <sys/wait.h> -#endif +#include <sys/wait.h> #include <stdlib.h> GMutex dvi_context_mutex; @@ -246,13 +240,10 @@ dvi_document_class_init (DviDocumentClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); EvDocumentClass *ev_document_class = EV_DOCUMENT_CLASS (klass); - gchar *texmfcnf; gobject_class->finalize = dvi_document_finalize; - texmfcnf = get_texmfcnf(); - mdvi_init_kpathsea ("atril", MDVI_MFMODE, MDVI_FALLBACK_FONT, MDVI_DPI, texmfcnf); - g_free(texmfcnf); + mdvi_init_kpathsea ("atril", MDVI_MFMODE, MDVI_FALLBACK_FONT, MDVI_DPI, getenv("TEXMFCNF")); mdvi_register_special ("Color", "color", NULL, dvi_document_do_color_special, 1); mdvi_register_fonts (); |