GTK: Use wxID_NONE for unhighlight events

This commit is contained in:
Ian McInerney
2019-11-05 12:09:26 +00:00
parent 790c1818cb
commit 3a668b4d0a
2 changed files with 2 additions and 2 deletions

View File

@@ -575,7 +575,7 @@ static void menuitem_deselect(GtkWidget*, wxMenuItem* item)
if (!item->IsEnabled())
return;
wxMenuEvent event(wxEVT_MENU_HIGHLIGHT, -1, item->GetMenu());
wxMenuEvent event(wxEVT_MENU_HIGHLIGHT, wxID_NONE, item->GetMenu());
DoCommonMenuCallbackCode(item->GetMenu(), event);
}
}

View File

@@ -673,7 +673,7 @@ static void gtk_menu_nolight_callback( GtkWidget *widget, wxMenu *menu )
if (!menu->IsEnabled(id))
return;
wxMenuEvent event( wxEVT_MENU_HIGHLIGHT, -1, menu );
wxMenuEvent event( wxEVT_MENU_HIGHLIGHT, wxID_NONE, menu );
event.SetEventObject( menu );
wxEvtHandler* handler = menu->GetEventHandler();