nixpkgs/pkgs/applications/misc/pytrainer/pytrainer-webkit.patch

15 lines
685 B
Diff
Raw Normal View History

2014-12-21 10:23:53 +00:00
diff -Nurp pytrainer-1.10.0-orig/pytrainer/extensions/mapviewer.py pytrainer-1.10.0/pytrainer/extensions/mapviewer.py
--- pytrainer-1.10.0-orig/pytrainer/extensions/mapviewer.py 2013-03-31 12:28:29.000000000 +0200
+++ pytrainer-1.10.0/pytrainer/extensions/mapviewer.py 2014-12-22 11:44:44.367032126 +0100
@@ -46,7 +46,9 @@ class MapViewer:
logging.debug(">>")
if htmlfile is None:
htmlfile = self.createErrorHtml()
- self.wkview.load_uri("file://%s" % (htmlfile))
+ content = open(htmlfile, 'r').read()
+ self.wkview.load_string(content, 'text/html', 'UTF-8', 'file:///')
+ #self.wkview.load_uri("file://%s" % (htmlfile))
#self.box.show_all()
logging.debug("<<")