set event object correctly for the menu events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -209,6 +209,7 @@ Unix:
|
||||
wxGTK
|
||||
|
||||
- fixed compilation with --disable-compat-22
|
||||
- set the event object correctly for wxMenu events (Bob Balfour)
|
||||
|
||||
wxMSW:
|
||||
|
||||
|
||||
@@ -736,6 +736,7 @@ static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu )
|
||||
commandEvent.SetEventObject(frame);
|
||||
if (item->IsCheckable())
|
||||
commandEvent.SetInt(item->IsChecked());
|
||||
commandEvent.SetEventObject(menu);
|
||||
|
||||
frame->GetEventHandler()->ProcessEvent(commandEvent);
|
||||
}
|
||||
|
||||
@@ -736,6 +736,7 @@ static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu )
|
||||
commandEvent.SetEventObject(frame);
|
||||
if (item->IsCheckable())
|
||||
commandEvent.SetInt(item->IsChecked());
|
||||
commandEvent.SetEventObject(menu);
|
||||
|
||||
frame->GetEventHandler()->ProcessEvent(commandEvent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user