# File gtk/sample/gtk-demo/hypertext.rb, line 185 def motion_notify_event(text_view, event) x, y = text_view.window_to_buffer_coords(Gtk::TextView::WINDOW_WIDGET, event.x, event.y) set_cursor_if_appropriate(text_view, x, y) text_view.window.pointer false end