---
name: "Gtk2::AccelLabel"
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::AccelLabel"
---

# Gtk2::AccelLabel(3pm)

wrapper for GtkAccelLabel

## NAME

Gtk2::AccelLabel - wrapper for GtkAccelLabel

## DESCRIPTION

Note that the `"accel-widget"` property is a hard reference to the target widget.  If it's a container parent of the AccelLabel then it will be a circular reference and will have to be unset by an explicit `"destroy"` when no longer wanted, as usual for such things.  See Gtk2::MenuItem for how this affects the common case of a MenuItem containing a AccelLabel.

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Misc
                      +----Gtk2::Label
                           +----Gtk2::AccelLabel
```

## INTERFACES

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

## METHODS

### widget = Gtk2::AccelLabel-\>new ($string)

- •

  `$string` (string)

### widget or undef = $accel\_label-\>get\_accel\_widget

### $accel\_label-\>set\_accel\_widget ($accel\_widget)

- •

  `$accel_widget` (Gtk2::Widget or undef)

### integer = $accel\_label-\>get\_accel\_width

### boolean = $accel\_label-\>refetch

## PROPERTIES

- 'accel-closure' (GClosure : default undef : readable / writable / private)

  The closure to be monitored for accelerator changes

- 'accel-widget' (Gtk2::Widget : default undef : readable / writable / private)

  The widget to be monitored for accelerator changes

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Misc, Gtk2::Label

## COPYRIGHT

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

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