bug 9286; fix styledtext editing of LINK with URL as Visible element
This commit is contained in:
parent
a5ed1086d8
commit
1e8ab3ec69
@ -292,7 +292,6 @@ class StyledTextEditor(Gtk.TextView):
|
||||
iter_at_location = iter_at_location[1]
|
||||
self.match = self.textbuffer.match_check(iter_at_location.get_offset())
|
||||
tooltip = None
|
||||
if not self.match:
|
||||
for tag in (tag for tag in iter_at_location.get_tags()
|
||||
if tag.get_property('name').startswith("link")):
|
||||
self.match = (x, y, LINK, tag.data, tag)
|
||||
@ -303,8 +302,7 @@ class StyledTextEditor(Gtk.TextView):
|
||||
self.emit('match-changed', self.match)
|
||||
|
||||
self.last_match = self.match
|
||||
self.get_root_window().get_pointer()
|
||||
if tooltip:
|
||||
# self.get_root_window().get_pointer() # Doesn't seem to do anythhing!
|
||||
self.set_tooltip_text(tooltip)
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user