]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dirdlg.cpp
get wxSYS_COLOUR_MENU from a menu bar and not from a button (patch 1887197)
[wxWidgets.git] / src / gtk / dirdlg.cpp
index 8613388d29cc6bd18ee215de6b391b48624e314f..7874ff5773f8dc06960c9c81d687509d06d24f13 100644 (file)
@@ -49,7 +49,7 @@ static void gtk_dirdialog_ok_callback(GtkWidget *widget, wxDirDialog *dialog)
 
     wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK);
     event.SetEventObject(dialog);
-    dialog->GetEventHandler()->ProcessEvent(event);
+    dialog->HandleWindowEvent(event);
 }
 }
 
@@ -63,7 +63,7 @@ static void gtk_dirdialog_cancel_callback(GtkWidget *WXUNUSED(w),
 {
     wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
     event.SetEventObject(dialog);
-    dialog->GetEventHandler()->ProcessEvent(event);
+    dialog->HandleWindowEvent(event);
 }
 }