src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Fri, 27 Feb 2015 00:56:42 +0000 (08:56 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 Feb 2015 00:56:42 +0000 (08:56 +0800)
src/Builder4/WindowState.vala

index aecd2bf..3f5f833 100644 (file)
@@ -522,7 +522,7 @@ public class WindowState : Object
  
                 this.win.rooview.el.save_easing_state();
                 // -- FIXME? this needs to be State aware?
-                _this.clutterembed.setSizesAlloc( this.state == State.LISTENER  ? "addlistener" : "addprop");
+                this.resizeCanvasElementsA();
                 this.win.rooview.el.restore_easing_state();
                 
               
@@ -537,8 +537,7 @@ public class WindowState : Object
                 
                 // caller needs to call editor - show....
                 this.win.rooview.el.save_easing_state();
-                // -- FIXME? this needs to be State aware?
-                _this.clutterembed.setSizesAlloc( "codeedit");
+                this.resizeCanvasElementsA();
                 this.win.rooview.el.restore_easing_state();
                 
  
@@ -566,9 +565,8 @@ public class WindowState : Object
                 this.rightpalete.el.show_all();
                 this.rightpalete.load(_this.left_tree.getActiveFile().palete(), n == null ? "*top" : n.fqn());
 
-                 this.win.rooview.el.save_easing_state();
-                // -- FIXME? this needs to be State aware?
-                _this.clutterembed.setSizesAlloc( "codeedit");
+                this.win.rooview.el.save_easing_state();
+                this.resizeCanvasElementsA();
                 this.win.rooview.el.restore_easing_state();
 
                 
@@ -588,8 +586,7 @@ public class WindowState : Object
                 }
 
                  this.win.rooview.el.save_easing_state();
-                // -- FIXME? this needs to be State aware?
-                _this.clutterembed.setSizesAlloc( "projectedit"); // was doing 0.5f....
+                this.resizeCanvasElementsA();
                 this.win.rooview.el.restore_easing_state();
 
                 this.win.projecteditview.el.save_easing_state();