Gtk.Dialog.prototype.get_widget_for_response

function get_widget_for_response(response_id:Number):Gtk.Widget {
    // Gjs wrapper for gtk_dialog_get_widget_for_response()
}

Gets the widget button that uses the given response ID in the action area of a dialog.

Since 2.20

response_id

the response ID used by the dialog widget

Returns

the @widget button that uses the given response_id, or null.