Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-11-16 11:56:28 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-11-16 11:56:28 (GMT)
commit4d22b7e0cb02ae00049be026d887932d50b504c2 (patch)
tree225c1dd910db7cb013e84ced34629895015f9b74
parentc7fd34fbecbb24c59d61c99d99b7fd22bab5a444 (diff)
Workaround https://bugs.launchpad.net/soas/+bug/483231
-rw-r--r--epubview/epubview.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/epubview/epubview.py b/epubview/epubview.py
index 7300bd0..5af9ac0 100644
--- a/epubview/epubview.py
+++ b/epubview/epubview.py
@@ -349,6 +349,11 @@ class _View(gtk.HBox):
return False
def _view_load_finished_cb(self, v, frame):
+
+ # Normally the line below would not be required - ugly workaround for
+ # possible Webkit bug. See : https://bugs.launchpad.net/bugs/483231
+ self._sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_NEVER)
+
filename = self._view.props.uri.replace('file://', '')
if os.path.exists(filename.replace('xhtml', 'xml')):
filename = filename.replace('xhtml', 'xml') # Hack for making javascript work