[ CCode ( has_construct_function = false ) ]
public ContextMenuItem.from_stock_action_with_label (ContextMenuAction action, string label)
Creates a new ContextMenuItem for the given stock action using the given
label
.
Stock actions have a predefined label, this method can be used to create a ContextMenuItem for a ContextMenuAction but using a custom label.
action |
a ContextMenuAction stock action |
label |
a custom label text to use instead of the predefined one |
the newly created ContextMenuItem object. |