GTK4 MessageDialog can't set the default button and button style
Steps to reproduce
Example code in Vala language:
var message_dialog = new Gtk.MessageDialog(
this,
Gtk.DialogFlags.MODAL,
Gtk.MessageType.INFO,
Gtk.ButtonsType.YES_NO,
"Do you want to close this page?");
message_dialog.secondary_text = "Notebook page tab widget close button clicked, page will be close, but not in fact.";
message_dialog.response.connect((dialog, id) => {
dialog.destroy();
});
message_dialog.show();
Current behavior
Now it can't set the default button and button style
Expected outcome
Support to set the default button and the default button style
Version information
GTK4 4.5
Additional information
Edited by TAO ZUHONG