From: Vadim Zeitlin Date: Wed, 3 Feb 1999 16:44:10 +0000 (+0000) Subject: compilation problem fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b7f4714a25146e46445bf6c1ee152ebac1c541f4 compilation problem fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 88fb8defb7..1667ec8e07 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -63,7 +63,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial } dialog->SetPath( gtk_file_selection_get_filename( GTK_FILE_SELECTION(dialog->m_widget) ) ); - + wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED,wxID_OK); event.SetEventObject( dialog ); dialog->GetEventHandler()->ProcessEvent( event ); @@ -74,7 +74,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial //----------------------------------------------------------------------------- static -void gtk_filedialog_cancel_callback( GtkWidget *WXUNUSED(widget), gpointer data ) +void gtk_filedialog_cancel_callback( GtkWidget *WXUNUSED(w), wxFileDialog *dialog ) { wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED,wxID_CANCEL); event.SetEventObject( dialog ); diff --git a/src/gtk1/filedlg.cpp b/src/gtk1/filedlg.cpp index 88fb8defb7..1667ec8e07 100644 --- a/src/gtk1/filedlg.cpp +++ b/src/gtk1/filedlg.cpp @@ -63,7 +63,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial } dialog->SetPath( gtk_file_selection_get_filename( GTK_FILE_SELECTION(dialog->m_widget) ) ); - + wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED,wxID_OK); event.SetEventObject( dialog ); dialog->GetEventHandler()->ProcessEvent( event ); @@ -74,7 +74,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial //----------------------------------------------------------------------------- static -void gtk_filedialog_cancel_callback( GtkWidget *WXUNUSED(widget), gpointer data ) +void gtk_filedialog_cancel_callback( GtkWidget *WXUNUSED(w), wxFileDialog *dialog ) { wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED,wxID_CANCEL); event.SetEventObject( dialog );