---
name: "Gtk2::LinkButton"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::LinkButton"
---

# Gtk2::LinkButton(3pm)

wrapper for GtkLinkButton

## NAME

Gtk2::LinkButton - wrapper for GtkLinkButton

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gtk2::LinkButton
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Activatable
```

## METHODS

### widget = Gtk2::LinkButton-\>new ($url, $label=undef)

- •

  `$url` (string)

- •

  `$label` (string)

### widget = Gtk2::LinkButton-\>new\_with\_label ($url, $label=undef)

- •

  `$url` (string)

- •

  `$label` (string)

### string = $link\_button-\>get\_uri

### Gtk2::LinkButton-\>set\_uri\_hook ($func, $data=undef)

- •

  `$func` (scalar)

- •

  `$data` (scalar)

Pass undef for *func* to unset the URI hook.

Note that the current implementation does **not** return the old hook function. This means that there is no way to restore an old hook once you overwrote it.

### $link\_button-\>set\_uri ($uri)

- •

  `$uri` (string)

### boolean = $link\_button-\>get\_visited

Since: gtk+ 2.14

### $link\_button-\>set\_visited ($visited)

- •

  `$visited` (boolean)

Since: gtk+ 2.14

## PROPERTIES

- 'uri' (string : default undef : readable / writable)

  The URI bound to this button

- 'visited' (boolean : default false : readable / writable)

  Whether this link has been visited.

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
