"(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\") ||",
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") ||