This commit is contained in:
Nikos Kouremenos 2005-04-08 20:03:19 +00:00
parent 7ac46289b0
commit 45afd619db
1 changed files with 5 additions and 3 deletions

View File

@ -399,7 +399,9 @@ 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:
tag_name = tag.get_property('name')
if 'url' in tag_name or 'mail' in tag_name:
return True return True
def print_time_timeout(self, jid): def print_time_timeout(self, jid):
@ -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