A GtkAccelLabel is a label capable of displaying
any accelerator, modifier keys and signal set on a
GtkMenuItem or similar widget.
In PHP-GTK this is effectively an internal widget, as an accelerator
label is created the moment a text string is passed to a menu item. It
is therefore unlikely that you will ever need to use the constructor, or
any of the methods that this class directly provides. However, you may
need to access it, for instance to parse an underline in a label's text
string or to retrieve a menu's textual content.
To access the GtkAccelLabel within an existing
menu item, use the following code:
$accel_label = $menu_item->child;
You will then be able to call most of the methods available to a new
instance of a GtkAccelLabel.