ContextMenuItem.newFromStockActionWithLabel

Creates a new #WebKitContextMenuItem for the given stock action using the given label.

Stock actions have a predefined label, this method can be used to create a #WebKitContextMenuItem for a #WebKitContextMenuAction but using a custom label.

Parameters

actiona #WebKitContextMenuAction stock action
labela custom label text to use instead of the predefined one

Returns

the newly created #WebKitContextMenuItem object.