src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 24 Mar 2024 02:55:48 +0000 (10:55 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 24 Mar 2024 02:55:48 +0000 (10:55 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index f6a2b69..3904b12 100644 (file)
                "(n_press, x, y) => {",
                "\tGtk.TextIter iter;",
                "\tint buffer_x, buffer_y;",
-               "\t_this.viewwindow_to_buffer_coords (",
-               "\t\t\tGtk.TextWindowTyp.TEXT, ",
-               "\t\t\t",
-               "\t\t\t(int)x, (int)y, out  buffer_x, out  buffer_y)",
+               "\t_this.view.window_to_buffer_coords (",
+               "\t\tGtk.TextWindowTyp.TEXT, ",
+               "\t\t(int)x, (int)y, out  buffer_x, out  buffer_y",
+               "\t);",
                "",
                "\t_this.view.el.get_iter_at_location (out  iter,  buffer_x,  buffer_x;",
                "\tif (_this.buffer.el.iter_has_context_class(iter, \"comment\") ||",
index ae747f1..4c52e43 100644 (file)
@@ -1317,10 +1317,10 @@ public class Editor : Object
                        this.el.pressed.connect( (n_press, x, y) => {
                                Gtk.TextIter iter;
                                int buffer_x, buffer_y;
-                               _this.viewwindow_to_buffer_coords (
-                                               Gtk.TextWindowTyp.TEXT, 
-                                               
-                                               (int)x, (int)y, out  buffer_x, out  buffer_y)
+                               _this.view.window_to_buffer_coords (
+                                       Gtk.TextWindowTyp.TEXT, 
+                                       (int)x, (int)y, out  buffer_x, out  buffer_y
+                               );
                        
                                _this.view.el.get_iter_at_location (out  iter,  buffer_x,  buffer_x;
                                if (_this.buffer.el.iter_has_context_class(iter, "comment") ||