Method

GtkLabelget_current_uri

since: 2.18

Declaration [src]

const gchar*
gtk_label_get_current_uri (
  GtkLabel* label
)

Description [src]

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 GtkLabel::activate-link handler or for use in a GtkWidget::query-tooltip handler.

Available since: 2.18

Return value

Type: const gchar*

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

The returned data is owned by the instance.
The value is a NUL terminated UTF-8 string.