set_icon_from_stock
Description:
[ Version ( deprecated = true , deprecated_since = "3.10" , since = "2.12" ) ]
public void set_icon_from_stock (string? stock_id, int size)
public void set_icon_from_stock (string? stock_id, int size)
Warning: set_icon_from_stock is deprecated since 3.10.
Sets the icon of the tooltip (which is in front of the text) to be the stock item indicated by stock_id
with the size indicated by
size
.
Note:
Use set_icon_from_icon_name instead.
If stock_id
is null, the image will be hidden.
Parameters:
this |
a Tooltip |
stock_id |
a stock id, or null |
size |
a stock icon size (IconSize) |