method

add_item

ruby latest stable - Class: JSON::Editor::MenuExtension

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

add_item(label, keyval = nil, klass = MenuItem, &callback)
public

Adds a Gtk::MenuItem to this instance’s #menu. label is the label string, klass is the item type, and callback is the procedure, that is called if the item is activated.