From 13439807d34f5a71f95dadb727e7b0056dba210a Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 6 Sep 1998 18:47:46 +0000 Subject: [PATCH] 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 --- src/gtk/menu.cpp | 2 ++ src/gtk1/menu.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 9465c44a37..7bf133ec47 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -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; diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 9465c44a37..7bf133ec47 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -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; -- 2.47.2