Function

Gtkshow_uri

Declaration [src]

gboolean
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.

Parameters

screen 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.
uri const gchar*
 

The uri to show.

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

A timestamp to prevent focus stealing.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success, FALSE on error.