MenuToolButton.from_stock


Description:

[ CCode ( has_construct_function = false , type = "GtkToolItem*" ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" , since = "2.6" ) ]
public MenuToolButton.from_stock (string stock_id)

Warning: MenuToolButton.from_stock is deprecated since 3.10.

Creates a new MenuToolButton.

Note:

Use MenuToolButton instead.

The new MenuToolButton will contain an icon and label from the stock item indicated by stock_id.

Parameters:

stock_id

the name of a stock item

Returns:

the new MenuToolButton