271
273
def _ui_message_dialog(self, title, text, _type,
272
274
buttons=Gtk.ButtonsType.CLOSE):
274
276
if 'http://' in text or 'https://' in text:
275
279
text = GLib.markup_escape_text(text)
276
280
text = re.sub(r'(https?://[a-zA-Z0-9._-]+(?:[a-zA-Z0-9_#?%/-])*)',
277
281
r'<a href="\1">\1</a>', text)
281
285
# work around gnome #620579
286
290
while Gtk.events_pending():
287
291
Gtk.main_iteration_do(False)
290
295
def ui_info_message(self, title, text):