src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:11:23 +0000 (19:11 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:11:23 +0000 (19:11 +0800)
src/Builder4/Editor.bjs
src/Builder4/Editor.vala

src/Builder4/WindowState.vala

index 3b16f20..2e76de2 100644 (file)
@@ -454,6 +454,9 @@ public class WindowState : Object
                        this.switchState (State.PREVIEW); 
                        // this triggers loadItems..
                        this.left_tree.model.loadFile(file);
+                       if (file.project.xtype == "Gtk" ) {
+                               this.window_gladeview.scroll_to_line(line);
+                       }
 
                }