From eca35180f9ffa43e361ef0eb0c9a0d04ad461951 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 16 Feb 2017 04:51:23 +0100 Subject: [PATCH] docs: Advise to use gtk_show_uri_on_window() Instead of gtk_show_uri() which is now deprecated, and mention an additional benefit of doing so. https://bugzilla.gnome.org/show_bug.cgi?id=778726 --- docs/reference/gtk/migrating-2to3.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml index 26a96e84b4..64ba69b1f2 100644 --- a/docs/reference/gtk/migrating-2to3.xml +++ b/docs/reference/gtk/migrating-2to3.xml @@ -184,8 +184,9 @@ If you are opening a document or URI by launching a command like firefox http://my-favourite-website.com or gnome-open ghelp:epiphany, it is best to just use - gtk_show_uri(); as an added benefit, your application will henceforth - respect the users preference for what application to use. + gtk_show_uri_on_window(); as an added benefit, your application will + henceforth respect the users preference for what application to use and + correctly open links in sandboxed applications. If you are launching a regular, installed application that has a desktop file, it is best to use GIOs #GAppInfo with a suitable launch context.