XObjectBase/GtkListStore.js
[app.Builder.js] / XObjectBase / GdlDock.js
index eba43fb..50228ee 100644 (file)
@@ -14,8 +14,11 @@ GdlDock = XObject.define(
         pack : 'add', // default.. can be pack_start...
         init : function()
         {
-            this.el = new Gdl.Dock ();
-            this.layout = new Gdl.DockLayout.c_new (this.el);
+            
+            // dock for the current window exists. - use it..
+            this.el = this.get('^').dock || new Gdl.Dock ();
+            this.get('^').dock =  this.el ;
+            this.get('^').layout = new Gdl.DockLayout.c_new (this.el);
             XObject.prototype.init.call(this);
         }
     }