]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/filedlg.cpp
fix bug with adding entries to a root group containing only subgroups (as shown by...
[wxWidgets.git] / src / gtk / filedlg.cpp
index ce722561acd6e5084378ff8b6de6f2bf0ba1544b..22ca5c3e6d187145f1a2f6ead39765181fc89383 100644 (file)
@@ -63,13 +63,13 @@ static void gtk_filedialog_ok_callback(GtkWidget *widget, wxFileDialog *dialog)
     {
         if ( !g_file_test(filename, G_FILE_TEST_EXISTS) )
         {
-            wxMessageDialog dlg( dialog, _("Please choose an existing file."), 
+            wxMessageDialog dlg( dialog, _("Please choose an existing file."),
                                  _("Error"), wxOK| wxICON_ERROR);
             dlg.ShowModal();
             return;
         }
     }
-    
+
     // change to the directory where the user went if asked
     if (style & wxFD_CHANGE_DIR)
     {
@@ -91,7 +91,8 @@ static void gtk_filedialog_ok_callback(GtkWidget *widget, wxFileDialog *dialog)
 extern "C"
 {
 
-static void gtk_filedialog_cancel_callback(GtkWidget *w, wxFileDialog *dialog)
+static void
+gtk_filedialog_cancel_callback(GtkWidget * WXUNUSED(w), wxFileDialog *dialog)
 {
     wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
     event.SetEventObject(dialog);