[gnome-builder] html-preview: cleanup initialization



commit 10b5183f5f79e667936a0f0fc2689fd5f9e99a24
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 17 12:49:21 2019 -0800

    html-preview: cleanup initialization

 src/plugins/html-preview/html_preview.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/html-preview/html_preview.py b/src/plugins/html-preview/html_preview.py
index 677f917db..820456777 100644
--- a/src/plugins/html-preview/html_preview.py
+++ b/src/plugins/html-preview/html_preview.py
@@ -366,17 +366,16 @@ class HtmlPreviewPage(Ide.Page):
     def __init__(self, document, sphinx_basedir, sphinx_builddir, *args, **kwargs):
         global old_open
 
-        print("Test");
-
-        Ide.Page.__init__(self, *args, **kwargs)
-        #super().__init__(self, *args, **kwargs)
+        super().__init__(*args, **kwargs)
 
         self.sphinx_basedir = sphinx_basedir
         self.sphinx_builddir = sphinx_builddir
         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.webview.show()
 
         settings = self.webview.get_settings()
         settings.enable_html5_local_storage = False


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]