Skip to content
Browse files

wxCLOSE doesn't work correctly under 2.9

  • Loading branch information...
1 parent e0de91b commit 5cf87133039c329e44846d92da2b3d809042ace9 @alexkay committed
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/spek-preferences-dialog.cc
View
7 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);
}

0 comments on commit 5cf8713

Please sign in to comment.
Something went wrong with that request. Please try again.