addButton

open fun addButton(buttonText: String, responseId: Int): Widget

Adds a button with the given text.

GTK arranges things so that clicking the button will emit the signal@Gtk.Dialog::response signal with the given @response_id. The button is appended to the end of the dialog’s action area. The button widget is returned, but usually you don’t need it.

Return

the GtkButton widget that was added

Parameters

buttonText

text of button

responseId

response ID for the button