Method: Gtk::TextView#__button_press_event
- Defined in:
- lib/gtk_app/ext/text_view.rb
#__button_press_event(event) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 21 22 23 24 25 |
# File 'lib/gtk_app/ext/text_view.rb', line 18 def (event) if event. == 3 x, y = window_to_buffer_coords(Gtk::TextView::WINDOW_TEXT, *event.coords) iter, _ = get_iter_at_position(x, y) buffer.move_mark('click', iter) end false end |