set_stock_id


Description:

[ Version ( deprecated = true , deprecated_since = "3.10" , since = "2.4" ) ]
public void set_stock_id (string? stock_id)

Warning: set_stock_id is deprecated since 3.10.

Sets the name of the stock item.

Note:

Use set_icon_name instead.

See ToolButton.from_stock. The stock_id property only has an effect if not overridden by non-null label_widget and icon_widget properties.

Parameters:

this

a ToolButton

stock_id

a name of a stock item, or null