From 68623b593770cabc5a2de82fd39498a3cbe8126d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 29 Jun 2009 22:07:34 +0000 Subject: [PATCH] don't use wxFilePicker style when creating wxButton git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/filepickerg.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/generic/filepickerg.cpp b/src/generic/filepickerg.cpp index fa0259926f..f8d7a827c3 100644 --- a/src/generic/filepickerg.cpp +++ b/src/generic/filepickerg.cpp @@ -40,15 +40,20 @@ IMPLEMENT_DYNAMIC_CLASS(wxGenericDirButton, wxButton) // wxGenericFileButton // ---------------------------------------------------------------------------- -bool wxGenericFileDirButton::Create( wxWindow *parent, wxWindowID id, - const wxString &label, const wxString &path, - const wxString &message, const wxString &wildcard, - const wxPoint &pos, const wxSize &size, long style, - const wxValidator& validator, const wxString &name) +bool wxGenericFileDirButton::Create(wxWindow *parent, + wxWindowID id, + const wxString& label, + const wxString& path, + const wxString& message, + const wxString& wildcard, + const wxPoint& pos, + const wxSize& size, + long WXUNUSED(style), + const wxValidator& validator, + const wxString& name) { // create this button - if (!wxButton::Create(parent, id, label, pos, size, style, - validator, name)) + if ( !wxButton::Create(parent, id, label, pos, size, 0, validator, name) ) { wxFAIL_MSG( wxT("wxGenericFileButton creation failed") ); return false;