Button.from_stock
Description:
[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" ) ]
public Button.from_stock (string stock_id)
[ Version ( deprecated = true , deprecated_since = "3.10" ) ]
public Button.from_stock (string stock_id)
Warning: Button.from_stock is deprecated since 3.10.
Creates a new Button containing the image and text from a stock item.
Note:
Stock items are deprecated. Use Button.with_label instead.
Some stock ids have preprocessor macros like OK and APPLY.
If stock_id
is unknown, then it will be treated as a mnemonic label (as for
Button.with_mnemonic).
Parameters:
stock_id |
the name of the stock item |
Returns:
a new Button |