Create buttons bound to a URL
A <gtk-link-button>
is a <gtk-button>
with a hyperlink, similar to
the one used by web browsers, which triggers an action when clicked. It is
useful to show quick links to resources.
A link button is created by calling either gtk-link-button-new
or
gtk-link-button-new-with-label
. If using the former, the URI you pass to
the constructor is used as a label for the widget.
The URI bound to a <gtk-link-button>
can be set specifically using
gtk-link-button-set-uri
, and retrieved using
gtk-link-button-get-uri
.
<gtk-link-button>
offers a global hook, which is called when the used
clicks on it: see gtk-link-button-set-uri-hook
.
<gtk-link-button>
was added in GTK+ 2.10.
Derives from
<gtk-button>
.This class defines the following slots:
uri
- The URI bound to this button
mchars
) ⇒ (ret <gtk-widget>
)Creates a new
<gtk-link-button>
with the URI as its text.
- uri
- a valid URI
- ret
- a new link button widget.
Since 2.10
mchars
) (label mchars
) ⇒ (ret <gtk-widget>
)Creates a new
<gtk-link-button>
containing a label.
- uri
- a valid URI
- label
- the text of the button
- ret
- a new link button widget.
Since 2.10