BrowserWindow.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 08:08:09 +0000 (16:08 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 08:08:09 +0000 (16:08 +0800)
BrowserWindow.vala

BrowserWindow.bjs
BrowserWindow.vala

index 6b26192..def074b 100644 (file)
@@ -12,7 +12,7 @@
     "destroy" : "() => {\n    Gtk.main_quit();\n}",
     "show" : "() => {\n\t\n\tprint(\"resizing window\\n\");\n\tthis.el.resize(1200,500);\n\tprint(\"loading url\\n\");\n\tthis.view.el.load_uri(webkitpdf.opt_url);\n\n}"
    },
-   "xtype" : "OffscreenWindow",
+   "xtype" : "Window",
    "$ xns" : "Gtk",
    "items" : [
     {
index 7b9c249..2a533d8 100644 (file)
@@ -2,7 +2,7 @@ static BrowserWindow  _BrowserWindow;
 
 public class BrowserWindow : Object
 {
-    public Gtk.OffscreenWindow el;
+    public Gtk.Window el;
     private BrowserWindow  _this;
 
     public static BrowserWindow singleton()
@@ -21,7 +21,7 @@ public class BrowserWindow : Object
     public BrowserWindow()
     {
         _this = this;
-        this.el = new Gtk.OffscreenWindow();
+        this.el = new Gtk.Window( null );
 
         // my vars (dec)