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

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

index e75141f..b7cfbb4 100644 (file)
@@ -8,6 +8,7 @@
    "# Xcls_MainWindow main_window" : "",
    "$ xns" : "Gtk",
    "* args" : "Gtk.Window main_window",
+   "* ctor" : "",
    "* init" : "_this.main_window = main_window",
    "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
    "Gtk.SourceSearchContext searchcontext" : "",
index 9332eba..103762d 100644 (file)
@@ -32,7 +32,7 @@ public class Xcls_GladeuiView : Object
     public Xcls_GladeuiView(, Gtk.Window main_window)
     {
         _this = this;
-        this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+        this.el = ;
 
         // my vars (dec)
         this.lastObj = null;
@@ -42,6 +42,7 @@ public class Xcls_GladeuiView : Object
         this.height = 0;
 
         // set gobject values
+        this.el.orientation = Gtk.Orientation.VERTICAL;
         this.el.hexpand = true;
         this.el.vexpand = true;
         var child_0 = new Xcls_notebook( _this );