src/Builder4/GladeuiView.bjs
authorAlan <alan@roojs.com>
Mon, 30 May 2022 03:21:24 +0000 (11:21 +0800)
committerAlan <alan@roojs.com>
Mon, 30 May 2022 03:21:24 +0000 (11:21 +0800)
src/Builder4/GladeuiView.vala

src/Builder4/GladeuiView.bjs
src/Builder4/GladeuiView.vala

index a0fbd78..74ec5a7 100644 (file)
     "}",
     ""
    ],
+   "| return_type initGlade" : [
+    "() {",
+    "\t _this.designview =  new Xcls_designview( _this );",
+    "\t ",
+    "\t_this.notebook.el.append_page(_this.designview, _this.label_preview.el);",
+    "}",
+    ""
+   ],
    "| void createThumb" : [
     "() {",
     "    ",
     "() {",
     "\t _this.designview =  new Xcls_designview( _this );",
     "\t ",
-    "\t_this.notebook.el.append_page(_this.designview, _this.label_preview.el);",
+    "\t_this.notebook.el.append_page(_this.designview.el, _this.label_preview.el);",
     "}",
     ""
    ],
index 5e1a509..8050239 100644 (file)
@@ -171,6 +171,11 @@ public class Xcls_GladeuiView : Object
             
      
     
+    }
+    public return_type initGlade () {
+        _this.designview =  new Xcls_designview( _this );
+        
+       _this.notebook.el.append_page(_this.designview, _this.label_preview.el);
     }
     public void forwardSearch (bool change_focus) {
     
@@ -200,7 +205,7 @@ public class Xcls_GladeuiView : Object
     public void initGlade () {
         _this.designview =  new Xcls_designview( _this );
         
-       _this.notebook.el.append_page(_this.designview, _this.label_preview.el);
+       _this.notebook.el.append_page(_this.designview.el, _this.label_preview.el);
     }
     public class Xcls_notebook : Object
     {