GtkLinkButton

A GtkLinkButton is a #GtkButton 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.LinkButton.new_ or gtk.link_button.LinkButton.newWithLabel. If using the former, the URI you pass to the constructor is used as a label for the widget.

The URI bound to a GtkLinkButton can be set specifically using gtk.link_button.LinkButton.setUri, and retrieved using gtk.link_button.LinkButton.getUri.

By default, GtkLinkButton calls gtk.global.showUriOnWindow when the button is clicked. This behaviour can be overridden by connecting to the #GtkLinkButton::activate-link signal and returning true from the signal handler.

CSS nodes

GtkLinkButton has a single CSS node with name button. To differentiate it from a plain #GtkButton, it gets the .link style class.

Members

Variables

parentInstance
GtkButton parentInstance;
priv
GtkLinkButtonPrivate* priv;