# File gtk/sample/gtk-demo/hypertext.rb, line 196
    def visibility_notify_event (text_view, event)
      window, wx, wy = text_view.window.pointer
      bx, by = text_view.window_to_buffer_coords(Gtk::TextView::WINDOW_WIDGET,
                                                 wx, wy)
      set_cursor_if_appropriate(text_view, bx, by)

      false
    end