add_button
Description:
[ Version ( since = "2.18" ) ]
public unowned Button add_button (string button_text, int response_id)
public unowned Button add_button (string button_text, int response_id)
Adds a button with the given text and sets things up so that clicking the button will emit the “response” signal with the given response_id.
The button is appended to the end of the info bars's action area. The button widget is returned, but usually you don't need it.
Parameters:
this |
a InfoBar |
button_text |
text of button |
response_id |
response ID for the button |
Returns:
the Button widget that was added |