Fix 'Welcome' Gramplet and StyledTextEditor for Link handling
Issue #10179
This commit is contained in:
parent
c759ee31eb
commit
2bc4139c65
@ -343,9 +343,9 @@ class StyledTextEditor(Gtk.TextView):
|
|||||||
"""
|
"""
|
||||||
self.selclick=False
|
self.selclick=False
|
||||||
if ((event.type == Gdk.EventType.BUTTON_PRESS) and
|
if ((event.type == Gdk.EventType.BUTTON_PRESS) and
|
||||||
(event.button == 1) and
|
(event.button == 1) and (self.url_match) and
|
||||||
(event.get_state() and get_primary_mask()) and
|
(event.get_state() & get_primary_mask()) or
|
||||||
(self.url_match)):
|
not self.get_editable())):
|
||||||
|
|
||||||
flavor = self.url_match[MATCH_FLAVOR]
|
flavor = self.url_match[MATCH_FLAVOR]
|
||||||
url = self.url_match[MATCH_STRING]
|
url = self.url_match[MATCH_STRING]
|
||||||
|
Loading…
Reference in New Issue
Block a user