diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-02-16 04:51:23 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2017-02-16 16:35:29 +0100 |
commit | eca35180f9ffa43e361ef0eb0c9a0d04ad461951 (patch) | |
tree | 248ecd7ee67305529db09f6628e0c92587609316 /docs | |
parent | d93dd81e6569bcf545196a6deb08c3d61749a2e1 (diff) | |
download | gtk+-eca35180f9ffa43e361ef0eb0c9a0d04ad461951.tar.gz |
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
Diffstat (limited to 'docs')
-rw-r--r-- | 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 26a96e84b4..64ba69b1f2 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. |