src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 06:39:38 +0000 (14:39 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 06:39:38 +0000 (14:39 +0800)
src/Builder4/WindowState.vala

index f8a68d6..d38127f 100644 (file)
@@ -549,9 +549,10 @@ public class WindowState : Object
                        case State.CODEONLY:
                                // going from codeonly..
                                this.win.leftpane.el.show();
-                           //while (Gtk.events_pending()) { 
-                               //      Gtk.main_iteration();
-                               //}
+                               // enable re-calc of canvas..
+                           while (Gtk.events_pending()) { 
+                                       Gtk.main_iteration();
+                               }
                                //this.code_editor.saveContents(); << not yet...
                                 
                                this.win.rooview.el.show();