deprecated: 3.22 since: 2.14

Declaration [src]

gtk_show_uri (
  GdkScreen* screen,
  const gchar* uri,
  guint32 timestamp,
  GError** error

Description [src]

A convenience function for launching the default application to show the uri. Like gtk_show_uri_on_window(), but takes a screen as transient parent instead of a window.

Note that this function is deprecated as it does not pass the necessary information for helpers to parent their dialog properly, when run from sandboxed applications for example.

Available since: 2.14

Deprecated since: 3.22

Use gtk_show_uri_on_window() instead.



Type: GdkScreen

Screen to show the uri on or NULL for the default screen.

The argument can be NULL.
The data is owned by the caller of the function.

Type: const gchar*

The uri to show.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Type: guint32

A timestamp to prevent focus stealing.


Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will left initialized to NULL by the function if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: gboolean

TRUE on success, FALSE on error.