wxMenu doesn't anylonger call the callback if the
event is only a highlight event (more similar to wxMSW) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -193,11 +193,13 @@ static void gtk_menu_hilight_callback( GtkWidget *widget, wxMenu *menu )
|
||||
event.SetEventObject( menu );
|
||||
event.SetInt(id );
|
||||
|
||||
/* wxMSW doesn't call callback here either
|
||||
if (menu->m_callback)
|
||||
{
|
||||
(void) (*(menu->m_callback)) (*menu, event);
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
if (menu->GetEventHandler()->ProcessEvent(event)) return;
|
||||
|
||||
|
@@ -193,11 +193,13 @@ static void gtk_menu_hilight_callback( GtkWidget *widget, wxMenu *menu )
|
||||
event.SetEventObject( menu );
|
||||
event.SetInt(id );
|
||||
|
||||
/* wxMSW doesn't call callback here either
|
||||
if (menu->m_callback)
|
||||
{
|
||||
(void) (*(menu->m_callback)) (*menu, event);
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
if (menu->GetEventHandler()->ProcessEvent(event)) return;
|
||||
|
||||
|
Reference in New Issue
Block a user