X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cbab64109b007fa1d939fe588f5e79f9105b915..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/gtk1/filedlg.cpp diff --git a/src/gtk1/filedlg.cpp b/src/gtk1/filedlg.cpp index e1b7d25cab..efebaebf2a 100644 --- a/src/gtk1/filedlg.cpp +++ b/src/gtk1/filedlg.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: gtk/filedlg.cpp +// Name: src/gtk1/filedlg.cpp // Purpose: native implementation of wxFileDialog // Author: Robert Roebling, Zbigniew Zagorski, Mart Raudsepp // Id: $Id$ @@ -10,12 +10,10 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -// Include setup.h to get wxUSE flags for compilers that do not support precompilation of headers -#include "wx/setup.h" - #if wxUSE_FILEDLG #include "wx/filedlg.h" +#include "wx/modalhook.h" //----------------------------------------------------------------------------- @@ -32,11 +30,13 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message, const wxString& defaultDir, const wxString& defaultFileName, const wxString& wildCard, - long style, const wxPoint& pos) + long style, const wxPoint& pos, + const wxSize& sz, + const wxString& name) : wxGenericFileDialog(parent, message, defaultDir, defaultFileName, - wildCard, style, pos, true ) + wildCard, style, pos, sz, name, true ) { - wxGenericFileDialog::Create( parent, message, defaultDir, defaultFileName, wildCard, style, pos ); + wxGenericFileDialog::Create( parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name ); } wxFileDialog::~wxFileDialog() @@ -45,11 +45,13 @@ wxFileDialog::~wxFileDialog() void wxFileDialog::OnFakeOk( wxCommandEvent &event ) { - wxGenericFileDialog::OnListOk( event ); + wxGenericFileDialog::OnOk( event ); } int wxFileDialog::ShowModal() { + WX_HOOK_MODAL_DIALOG(); + return wxGenericFileDialog::ShowModal(); }