[gnome-builder] html-preview: open links in new window



commit 4a7944670d2fba479a531757a310730a471dbd47
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 17 14:22:58 2019 -0800

    html-preview: open links in new window
    
    Fixes #760

 src/plugins/html-preview/html_preview.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/html-preview/html_preview.py b/src/plugins/html-preview/html_preview.py
index b4da8d056..671f0a8b3 100644
--- a/src/plugins/html-preview/html_preview.py
+++ b/src/plugins/html-preview/html_preview.py
@@ -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())
                 decision.ignore()
                 return True
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]