spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 5cf87133039c329e44846d92da2b3d809042ace9
parent e0de91bf8ef0284f8f2b496e2b1ebdb81777f509
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Mon, 27 Aug 2012 22:54:59 -0700

wxCLOSE doesn't work correctly under 2.9

Diffstat:
Msrc/spek-preferences-dialog.cc | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/spek-preferences-dialog.cc b/src/spek-preferences-dialog.cc @@ -45,11 +45,6 @@ static const char *available_languages[] = NULL }; -#ifndef wxCLOSE -// wxWidgets 2.8 doesn't have wxCLOSE, replace with wxOK for now. -#define wxCLOSE wxOK -#endif - #define ID_LANGUAGE (wxID_HIGHEST + 1) #define ID_CHECK (wxID_HIGHEST + 2) @@ -98,7 +93,7 @@ SpekPreferencesDialog::SpekPreferencesDialog(wxWindow *parent) : inner_sizer->Add(check_update, 0 ,wxLEFT | wxTOP, 12); check_update->SetValue(SpekPreferences::get().get_check_update()); - sizer->Add(CreateButtonSizer(wxCLOSE), 0, wxALIGN_RIGHT | wxBOTTOM | wxRIGHT, 12); + sizer->Add(CreateButtonSizer(wxOK), 0, wxALIGN_RIGHT | wxBOTTOM | wxRIGHT, 12); sizer->SetSizeHints(this); SetSizer(sizer); }