1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
Create buttons bound to a URL
7
<!-- ##### SECTION Long_Description ##### -->
9
A #GtkLinkButton is a #GtkButton with a hyperlink, similar to the one
10
used by web browsers, which triggers an action when clicked. It is useful
11
to show quick links to resources.
15
A link button is created by calling either gtk_link_button_new() or
16
gtk_link_button_new_with_label(). If using the former, the URI you pass
17
to the constructor is used as a label for the widget.
21
The URI bound to a #GtkLinkButton can be set specifically using
22
gtk_link_button_set_uri(), and retrieved using gtk_link_button_get_uri().
26
#GtkLinkButton offers a global hook, which is called when the used clicks
27
on it: see gtk_link_button_set_uri_hook().
31
#GtkLinkButton was added in GTK+ 2.10.
34
<!-- ##### SECTION See_Also ##### -->
39
<!-- ##### SECTION Stability_Level ##### -->
42
<!-- ##### SECTION Image ##### -->
45
<!-- ##### STRUCT GtkLinkButton ##### -->
47
The #GtkLinkButton struct contains private data only, and should be
48
manipulated using the functions below.
52
<!-- ##### ARG GtkLinkButton:uri ##### -->
57
<!-- ##### ARG GtkLinkButton:visited ##### -->
62
<!-- ##### FUNCTION gtk_link_button_new ##### -->
71
<!-- ##### FUNCTION gtk_link_button_new_with_label ##### -->
81
<!-- ##### FUNCTION gtk_link_button_get_uri ##### -->
90
<!-- ##### FUNCTION gtk_link_button_set_uri ##### -->
99
<!-- ##### USER_FUNCTION GtkLinkButtonUriFunc ##### -->
101
The type of a function which is called when the #GtkLinkButton is
105
@button: the #GtkLinkButton which was clicked
106
@link_: the URI to which the clicked #GtkLinkButton points
107
@user_data: user data that was passed when the function was registered
108
with gtk_link_button_set_uri_hook()
111
<!-- ##### FUNCTION gtk_link_button_set_uri_hook ##### -->
122
<!-- ##### FUNCTION gtk_link_button_get_visited ##### -->
131
<!-- ##### FUNCTION gtk_link_button_set_visited ##### -->