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

index 5f916e9..3fd59f8 100644 (file)
@@ -691,7 +691,9 @@ public class WindowState : Object
 
     public void resizeCanvasElements(Gtk.Allocation alloc)
     {
-        if (!_this.children_loaded) {  return; }
+        if (!_this.children_loaded) { 
+            return; 
+        }
      
         this.win.clutterfiles.set_size(alloc.width-50, alloc.height);
         
@@ -724,17 +726,15 @@ public class WindowState : Object
             case State.CODE: 
 
                    var scale = avail > 0.0f ? (avail - codesize -10 ) / avail : 0.0f;
-       
-       
-               this.win.rooview.el.set_scale(scale,scale);
-               break;
+                   this.win.rooview.el.set_scale(scale,scale);
+                break;
                 
             case State.PROP:
             case State.LISTENER:        
             case State.OBJECT:   
                    var scale = avail > 0.0f ? (avail - palsize -10 ) / avail : 0.0f;
-               this.win.rooview.el.set_scale(scale,scale);
-               break;
+                this.win.rooview.el.set_scale(scale,scale);
+                break;
         }
     }