diff --git a/mitterlib/ui/ui_pygtk.py b/mitterlib/ui/ui_pygtk.py index 3a63d47..5b88c5c 100644 --- a/mitterlib/ui/ui_pygtk.py +++ b/mitterlib/ui/ui_pygtk.py @@ -29,6 +29,7 @@ import re import urllib2 import webbrowser import gettext +import time from cgi import escape as html_escape @@ -1133,7 +1134,6 @@ class Interface(object): (path, _, _, _) = path return self._url_popup(widget, path, event) - return True def _message_popup(self, widget, user_data=None): """Builds the popup with the URLs in the message.""" @@ -1142,6 +1142,9 @@ class Interface(object): if not path: return True + # create a syntetic event (the popup requires one) + event = gtk.gdk.Event(gtk.gdk.BUTTON_PRESS) + event.button = 3 return self._url_popup(widget, path, event) def _open_url(self, widget, user_data=None):