show_uri_on_window
Description:
[ Version ( since = "3.22" ) ]
public bool show_uri_on_window (Window? parent, string uri, uint32 timestamp) throws Error
This is a convenience function for launching the default application to show the uri.
The uri must be of a form understood by GIO (i.e. you need to install gvfs to get support for uri schemes such as http:// or ftp://, as only local files are handled by GIO itself). Typical examples are - `file:///home/gnome/pict.jpg` - `http://www.gnome.org` - `mailto:me@gnome.org`
Ideally the timestamp is taken from the event triggering the show_uri call. If timestamp is not known you can take gdk_current_time.
This is the recommended call to be used as it passes information necessary for sandbox helpers to parent their dialogs properly.
Parameters:
parent |
parent window |
uri |
the uri to show |
timestamp |
a timestamp to prevent focus stealing |
Returns:
true on success, false on error |
Namespace: Gtk
Package: gtk+-3.0