diff --git a/src/plugins/docgen/Makefile.am b/src/plugins/docgen/Makefile.am index b01f9f470..5324e3e59 100644 --- a/src/plugins/docgen/Makefile.am +++ b/src/plugins/docgen/Makefile.am @@ -19,8 +19,7 @@ pkgdata_PYTHON = \ pkgpyexecdir = @pkgpyexecdir@/plugins/docgen pkgpythondir = @pkgpythondir@/plugins/docgen -GLADEFILES = \ - gtkprintpreview.glade +GLADEFILES = GRAPHICS = diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index a65800611..772cec466 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -55,6 +55,7 @@ import locale import shutil import codecs import tarfile +import tempfile import operator from TransUtils import sgettext as _ from cStringIO import StringIO @@ -115,8 +116,8 @@ _WEB_EXT = ['.html', '.htm', '.shtml', '.php', '.php3', '.cgi'] _INCLUDE_LIVING_VALUE = 99 # Arbitrary number _NAME_COL = 3 -_MAX_IMG_WIDTH = 800 # resize images that are wider than this -_MAX_IMG_HEIGHT = 600 # resize images that are taller than this +_DEFAULT_MAX_IMG_WIDTH = 800 # resize images that are wider than this (settable in options) +_DEFAULT_MAX_IMG_HEIGHT = 600 # resize images that are taller than this (settable in options) _WIDTH = 160 _HEIGHT = 50 _VGAP = 10 @@ -1339,22 +1340,43 @@ class MediaPage(BasePage): of.write('\t\t
%s (%dx%d)
\n' % (_('Click on the image to see the full size version'), width, height)) + of.write('\t\t