Plank.Items.DockItem.create_menu_item – plank Reference Manual
create_menu_item
Description:
protected
static
MenuItem
create_menu_item
(
string
title,
string
icon)
Creates a new menu item.
Parameters:
title
the title of the menu item
icon
the icon of the menu item
Returns:
the new menu item