Gtk.Label.prototype.get_current_uri

function get_current_uri():String {
    // Gjs wrapper for gtk_label_get_current_uri()
}

Returns the URI for the currently active link in the label. The active link is the one under the mouse pointer or, in a selectable label, the link in which the text cursor is currently positioned.

This function is intended for use in a Gtk.activate-link handler or for use in a Gtk.query-tooltip handler.

Since 2.18

Returns

the currently active URI. The string is owned by GTK+ and must not be freed or modified.