From afc8053aa791b28961e7a986da8712a857335155 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 2 Jun 2015 19:09:20 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 2 +- src/Builder4/Editor.vala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index 3825f1c4c..1b445d7e2 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -11,7 +11,7 @@ "# Xcls_MainWindow window" : "null", "# string activeEditor" : "\"\"", "| bool saveContents" : " () {\n \n \n if (_this.file == null) {\n return true;\n }\n \n \n \n \n \n var str = _this.buffer.toString();\n \n _this.buffer.checkSyntax();\n \n \n \n // LeftPanel.model.changed( str , false);\n _this.dirty = false;\n _this.save_button.el.sensitive = false;\n \n // find the text for the node..\n if (_this.file.xtype != \"PlainFile\") {\n if (ptype == \"listener\") {\n this.node.listeners.set(key,str);\n \n } else {\n this.node.props.set(key,str);\n }\n } else {\n _this.file.setSource( str );\n }\n \n // call the signal..\n this.save();\n \n return true;\n\n} ", - "| void scroll_to_line" : "() {\n\n}\n", + "| void scroll_to_line" : "(int line) {\n \n}\n", "# int pos_root_x" : "", "# int pos_root_y" : "", "# string ptype" : "\"\"", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 83e8c217b..a8f4ad18b 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -98,8 +98,8 @@ public class Editor : Object return true; } - public void scroll_to_line () { - + public void scroll_to_line (int line) { + } public void show (JsRender.JsRender file, JsRender.Node? node, string ptype, string key) { -- 2.39.2