MountOperation.showUri

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 gtk_show_uri() call. If timestamp is not known you can take GDK_CURRENT_TIME. This function can be used as a replacement for gnome_vfs_url_show() and gnome_url_show(). Since 2.14

class MountOperation
static
int
showUri
(,
string uri
,)

Parameters

screen Screen

screen to show the uri on or NULL for the default screen. [allow-none]

uri string

the uri to show

timestamp uint

a timestamp to prevent focus stealing.

Return Value

Type: int

TRUE on success, FALSE on error.

Throws

GException on failure.

Meta