From 1b9eca29e697ef97568d51bfa70f7c0cffd2fb8b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 24 Mar 2024 10:55:48 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 8 ++++---- src/Builder4/Editor.vala | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index f6a2b6945..3904b1238 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -601,10 +601,10 @@ "(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\") ||", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index ae747f12a..4c52e43fc 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -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") || -- 2.39.2