Dont change mouse cursor on leave event

GTK does this on itself
This commit is contained in:
Philipp Hörist 2017-03-08 19:46:39 +01:00
parent 209154edb2
commit 8af80a6189
1 changed files with 0 additions and 7 deletions

View File

@ -843,7 +843,6 @@ class HtmlTextView(Gtk.TextView):
self.set_editable(False)
self._changed_cursor = False
self.set_has_tooltip(True)
self.connect('leave-notify-event', self.__leave_event)
self.connect('realize', self.on_html_text_view_realized)
self.connect('unrealize', self.on_html_text_view_unrealized)
self.connect('copy-clipboard', self.on_html_text_view_copy_clipboard)
@ -905,12 +904,6 @@ class HtmlTextView(Gtk.TextView):
self._changed_cursor = False
return False
def __leave_event(self, widget, event):
if self._changed_cursor:
window = widget.get_window(Gtk.TextWindowType.TEXT)
window.set_cursor(gtkgui_helpers.get_cursor('XTERM'))
self._changed_cursor = False
def on_open_link_activate(self, widget, kind, text):
helpers.launch_browser_mailer(kind, text)