[gtk+/gtk-3-22] docs: Advise to use gtk_show_uri_on_window()



commit eca35180f9ffa43e361ef0eb0c9a0d04ad461951
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 16 04:51:23 2017 +0100

    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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml
index 26a96e8..64ba69b 100644
--- a/docs/reference/gtk/migrating-2to3.xml
+++ b/docs/reference/gtk/migrating-2to3.xml
@@ -184,8 +184,9 @@
         <listitem>If you are opening a document or URI by launching a command
         like <literal>firefox http://my-favourite-website.com</literal> or
         <literal>gnome-open ghelp:epiphany</literal>, 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.</listitem>
+        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.</listitem>
         <listitem>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.


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