X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 42a37b7df2..9dc790f7ff 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1141,7 +1141,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, int command = ancestor->GetAcceleratorTable()->GetCommand( event ); if (command != -1) { - wxCommandEvent command_event( wxEVT_COMMAND_MENU_SELECTED, command ); + wxCommandEvent command_event( wxEVT_MENU, command ); ret = ancestor->HandleWindowEvent( command_event ); break; } @@ -1257,7 +1257,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, if ( btnCancel ) { - wxCommandEvent eventClick(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL); + wxCommandEvent eventClick(wxEVT_BUTTON, wxID_CANCEL); eventClick.SetEventObject(btnCancel); ret = btnCancel->HandleWindowEvent(eventClick); } @@ -1332,6 +1332,7 @@ template void InitMouseEvent(wxWindowGTK *win, if (event.GetEventType() == wxEVT_MOUSEWHEEL) { event.m_linesPerAction = 3; + event.m_columnsPerAction = 3; event.m_wheelDelta = 120; if (((GdkEventButton*)gdk_event)->button == 4) event.m_wheelRotation = 120;