@new


Description:

[ Version ( since = "4.16" ) ]
public static unowned Widget @new (string label_text, string? tooltip_text, string? accel_path, Callback? callback, Object? callback_param, MenuShell? menu_to_append_item)

Convenience method to create a MenuItem and preconfigure it with the passed parameters.

Parameters:

label_text

Label to use for the MenuItem

tooltip_text

Tooltip to add on the passed item, or NULL

accel_path

Unique path, used to identify the accelerator, or NULL

callback

RadioActionCallback which will be triggered on activation, or NULL

callback_param

optional callback parameter, or NULL.

menu_to_append_item

MenuShell on which the item should be appended, or NULL

Returns:

A new MenuItem.