src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 09:28:25 +0000 (17:28 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 09:28:25 +0000 (17:28 +0800)
src/Builder4/WindowState.vala

index 5f5ce24..daba8da 100644 (file)
@@ -325,8 +325,10 @@ public class WindowState : Object
        public void codeEditInit()
        {
                this.code_editor  = new  Editor();
-               this.code_editor.ref();  /// really?
+               //this.code_editor.ref();  /// really?
                ((Gtk.Container)(this.win.codeeditview.el.get_widget())).add(this.code_editor.el);
+               
+               this.code_editor.window = this.win;
                //this.projectsettings.el.show_all();
 
                var stage = this.win.codeeditview.el.get_stage();