diff options
author | Hib Eris <hib@hiberis.nl> | 2010-01-27 07:11:31 (GMT) |
---|---|---|
committer | Hib Eris <hib@hiberis.nl> | 2010-01-27 16:27:23 (GMT) |
commit | 88f8f66524a6f62263ca721e7289c3218e450f2c (patch) | |
tree | f011448336fafec1c57cffe900aeee97e14050dc /backend/dvi/dvi-document.c | |
parent | 203a9fad044c6d090788ce716ce45c9ad7ba9399 (diff) |
[windows] Guess texmf.cnf location from mktexpk executable
Fixes bgo#602910.
Diffstat (limited to 'backend/dvi/dvi-document.c')
-rw-r--r-- | backend/dvi/dvi-document.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c index 5c4ecea..d1411a8 100644 --- a/backend/dvi/dvi-document.c +++ b/backend/dvi/dvi-document.c @@ -20,6 +20,7 @@ #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" @@ -239,10 +240,14 @@ 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; - mdvi_init_kpathsea ("evince", MDVI_MFMODE, MDVI_FALLBACK_FONT, MDVI_DPI); + texmfcnf = get_texmfcnf(); + mdvi_init_kpathsea ("evince", MDVI_MFMODE, MDVI_FALLBACK_FONT, MDVI_DPI, texmfcnf); + g_free(texmfcnf); + mdvi_register_special ("Color", "color", NULL, dvi_document_do_color_special, 1); mdvi_register_fonts (); |