Fix button order in wxGTK wxMessageDialog and wxStdDialogButtonSizer.
The order of buttons in wxGTK wxMessageDialog was accidentally broken since r55482 and wxStdDialogButtonSizer implementation for wxGTK was subsequently modified to work in the same way as the broken version of wxMessageDialog. Fix wxMessageDialog and remove the "compatibility" workarounds from wxStdDialogButtonSizer to restore correct behaviour in both places. Closes #12565. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -215,16 +215,23 @@ void wxMessageDialog::GTKCreateMsgDialog()
|
||||
{
|
||||
if ( addButtons )
|
||||
{
|
||||
// Add the buttons in the correct order which is, according to
|
||||
// http://library.gnome.org/devel/hig-book/stable/windows-alert.html.en
|
||||
// the following one:
|
||||
//
|
||||
// [Help] [Alternative] [Cancel] [Affirmative]
|
||||
|
||||
gtk_dialog_add_button(dlg, wxGTK_CONV(GetNoLabel()),
|
||||
GTK_RESPONSE_NO);
|
||||
gtk_dialog_add_button(dlg, wxGTK_CONV(GetYesLabel()),
|
||||
GTK_RESPONSE_YES);
|
||||
|
||||
if ( m_dialogStyle & wxCANCEL )
|
||||
{
|
||||
gtk_dialog_add_button(dlg, wxGTK_CONV(GetCancelLabel()),
|
||||
GTK_RESPONSE_CANCEL);
|
||||
}
|
||||
|
||||
gtk_dialog_add_button(dlg, wxGTK_CONV(GetYesLabel()),
|
||||
GTK_RESPONSE_YES);
|
||||
}
|
||||
|
||||
// it'd probably be harmless to call gtk_dialog_set_default_response()
|
||||
|
||||
Reference in New Issue
Block a user