Commit 4a794467 authored by Christian Hergert's avatar Christian Hergert

html-preview: open links in new window

Fixes #760
parent 6bb2491b
......@@ -410,6 +410,8 @@ class HtmlPreviewPage(Ide.Page):
if uri != self.document.get_file().get_uri() \
and 'gnome-builder-sphinx' not in uri:
toplevel = self.webview.get_toplevel()
Ide.gtk_show_uri_on_window(toplevel, uri, GLib.get_monotonic_time())
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment