fixing #159
This commit is contained in:
parent
7ac46289b0
commit
45afd619db
|
@ -399,8 +399,10 @@ class Chat:
|
||||||
iter = widget.get_iter_at_location(x, y)
|
iter = widget.get_iter_at_location(x, y)
|
||||||
tags = iter.get_tags()
|
tags = iter.get_tags()
|
||||||
if tags:
|
if tags:
|
||||||
print tags
|
for tag in tags:
|
||||||
return True
|
tag_name = tag.get_property('name')
|
||||||
|
if 'url' in tag_name or 'mail' in tag_name:
|
||||||
|
return True
|
||||||
|
|
||||||
def print_time_timeout(self, jid):
|
def print_time_timeout(self, jid):
|
||||||
if not jid in self.xmls.keys():
|
if not jid in self.xmls.keys():
|
||||||
|
@ -463,7 +465,7 @@ class Chat:
|
||||||
while not end_iter.ends_tag(texttag):
|
while not end_iter.ends_tag(texttag):
|
||||||
end_iter.forward_char()
|
end_iter.forward_char()
|
||||||
word = begin_iter.get_text(end_iter)
|
word = begin_iter.get_text(end_iter)
|
||||||
if event.button == 3:
|
if event.button == 3: # right click
|
||||||
self.make_link_menu(event, kind, word)
|
self.make_link_menu(event, kind, word)
|
||||||
else:
|
else:
|
||||||
#we launch the correct application
|
#we launch the correct application
|
||||||
|
|
Loading…
Reference in New Issue