Commit 10b5183f authored by Christian Hergert's avatar Christian Hergert

html-preview: cleanup initialization

parent a5e6f27d
...@@ -366,17 +366,16 @@ class HtmlPreviewPage(Ide.Page): ...@@ -366,17 +366,16 @@ class HtmlPreviewPage(Ide.Page):
def __init__(self, document, sphinx_basedir, sphinx_builddir, *args, **kwargs): def __init__(self, document, sphinx_basedir, sphinx_builddir, *args, **kwargs):
global old_open global old_open
print("Test"); super().__init__(*args, **kwargs)
Ide.Page.__init__(self, *args, **kwargs)
#super().__init__(self, *args, **kwargs)
self.sphinx_basedir = sphinx_basedir self.sphinx_basedir = sphinx_basedir
self.sphinx_builddir = sphinx_builddir self.sphinx_builddir = sphinx_builddir
self.document = document self.document = document
self.webview = WebKit2.WebView.new(expand=True, visible=True) self.webview = WebKit2.WebView()
self.webview.set_expand(True)
self.add(self.webview) self.add(self.webview)
self.webview.show()
settings = self.webview.get_settings() settings = self.webview.get_settings()
settings.enable_html5_local_storage = False settings.enable_html5_local_storage = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment