GtkRadioMenuItem Constructor

GtkRadioMenuItem new_from_widget ([string text [, bool use_underline = true]]);

Creates a new radio menu item based on the current one.

This is a convenience method; with it you don't need to set the radio button group.

Example 109. Creating radio menu items based on others.


$red   = new GtkRadioMenuItem(null, '_Red', true);
$blue  = $red->new_from_widget('_Blue', true);
$green = $red->new_from_widget('_Green');